dcmd_animation(playerid,params[])
{
new anim[60];
if(sscanf(params,"s",anim))
{
SendClientMessage(playerid,COLOR_GREEN,"_____________________Animationen_______________________");
SendClientMessage(playerid,COLOR_WHITE,"* Animationen: /animation [Animationsname]");
SCM(playerid,COLOR_WHITE, "** deine Animliste **");
return 1;
}
if(strcmp(anim,"test",true) == 0)
{
// deine anim die du machen willst
return 1;
}
return 1;
}
Beiträge von Tommyx3
-
-
finds geil :d 10/10
-
ne frage wie kann ich beleidigungen mit z.B Blume erstetzen?
Beispiel: Jemand schreibt: "Hi du Arsch" raus kommt dann "Hi du Blume" oder "Hi du *****" -
ne frage wie mach ich das bei server list das ist ? •
hab in der server.cfghostname Test • Server [0.3c]
Aber es zeigt so komische Zeichen an x.x -
Habs ihm mit TeamViewer gemacht könnt /closen
-
Zeile (8017) : error 054: unmatched closing brace ("}")
ein } zuviel
Zeile (8549) : Variable wird nie benutzt: "ReturnUser"
Variable wird nicht benutzt -
Jetzt kommt nicht mehr "Falsche ID!", sondern immer nur "Falsche Benutzung: /report ..."
Das ist normal >.> -
//lspd innen//
if (strcmp("/pd3", cmdtext, true) == 0)//hier der befehl der eingegeben werden muss das das tor aufgeht
{
if (PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)//hier die Fraktions id
{
if(status == 0)
{
MoveObject(pd3,227.76220703125, 163.99476623535, 1003.5790405273,4,1);// hier die koordinate hin wo das tor offen ist 1 ist hier die geschwindigkeit
SendClientMessage(playerid, COLOR_GREEN, "Tor geöffnet");
status = 1;
}
else if(status == 1)
{
MoveObject(pd3,227.87725830078, 161.61303710938, 1003.5790405273,4,1);// hier die koordinate wo das tor zu ist 1 ist auch hier wieder die geschwindigkeit
SendClientMessage(playerid, COLOR_RED, "Tor Geschlossen");
status = 1;
}
}
return 1;
}//lspd innen//
-
if(strcmp(cmdtext, "/atomdm", true) == 0)
{
if(IsInDM[playerid] ==1)
{
SendClientMessage(playerid,COLOR_RED,"Du musst vorher /leavedm machen");
return 1;
}
nojump2[playerid] = 0;
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid,5);
new atom[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(11);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
switch(RandomSpawn)
{
case 0:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2606.7253,-2598.6284,11.6743);
SetPlayerFacingAngle(playerid, 43.2817);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 1:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2604.5342,-2584.0771,15.2590);
SetPlayerFacingAngle(playerid, 196.3778);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 2:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2593.9360,-2577.2756,11.7636);
SetPlayerFacingAngle(playerid, 181.1656);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 3:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.3218,-2591.4336,11.6749);
SetPlayerFacingAngle(playerid, 54.3897);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 4:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2231,-2577.5161,11.6730);
SetPlayerFacingAngle(playerid, 186.2809);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 5:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2586.3330,-2581.8542,11.6532);
SetPlayerFacingAngle(playerid, 173.5594);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 6:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2572.1123,-2608.9583,11.7390);
SetPlayerFacingAngle(playerid, 274.3050);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 7:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2564.0518,-2583.3218,11.6561);
SetPlayerFacingAngle(playerid, 122.2349);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 8:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2557.5889,-2590.8477,11.6737);
SetPlayerFacingAngle(playerid, 224.8839);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 9:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2566.6692,-2591.4502,11.6753);
SetPlayerFacingAngle(playerid, 183.9388);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 10:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.0515,-2599.9429,2.2316);
SetPlayerFacingAngle(playerid, 263.0124);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
}
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 30, 300);
GivePlayerWeapon(playerid,34,10);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
IsInDM[playerid] = 1;
SendClientMessage(playerid, COLOR_RED, "Willkommen beim Atomkraftwerk DM");
format(atom, sizeof(atom), "[Teleport] %s has teleported to /atomdm - Atomkraftwerk DM", playerName);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ReceiveInfo[i] == true)
{
SendClientMessage(i, COLOR_LIGHTBLUE, atom);
}
}
}
return 1;und:
new RandomSpawn = random(11);
if(IsInDM[playerid] == 1)
{
switch(RandomSpawn)
{
case 0:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2606.7253,-2598.6284,11.6743);
SetPlayerFacingAngle(playerid, 43.2817);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 1:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2604.5342,-2584.0771,15.2590);
SetPlayerFacingAngle(playerid, 196.3778);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 2:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2593.9360,-2577.2756,11.7636);
SetPlayerFacingAngle(playerid, 181.1656);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 3:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.3218,-2591.4336,11.6749);
SetPlayerFacingAngle(playerid, 54.3897);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 4:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2231,-2577.5161,11.6730);
SetPlayerFacingAngle(playerid, 186.2809);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 5:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2586.3330,-2581.8542,11.6532);
SetPlayerFacingAngle(playerid, 173.5594);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 6:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2572.1123,-2608.9583,11.7390);
SetPlayerFacingAngle(playerid, 274.3050);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 7:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2564.0518,-2583.3218,11.6561);
SetPlayerFacingAngle(playerid, 122.2349);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 8:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2557.5889,-2590.8477,11.6737);
SetPlayerFacingAngle(playerid, 224.8839);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 9:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2566.6692,-2591.4502,11.6753);
SetPlayerFacingAngle(playerid, 183.9388);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 10:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.0515,-2599.9429,2.2316);
SetPlayerFacingAngle(playerid, 263.0124);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
}
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 30, 300);
GivePlayerWeapon(playerid,34,10);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
return 1;
} -
if(strcmp(cmdtext, "/atomdm", true) == 0)
{
if(IsInDM[playerid] ==1)
{
SendClientMessage(playerid,COLOR_RED,"Du musst vorher /leavedm machen");
return 1;
}
nojump2[playerid] = 0;
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid,5);
new atom[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(11);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
switch(RandomSpawn)
case 0:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2606.7253,-2598.6284,11.6743);
SetPlayerFacingAngle(playerid, 43.2817);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 1:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2604.5342,-2584.0771,15.2590);
SetPlayerFacingAngle(playerid, 196.3778);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 2:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2593.9360,-2577.2756,11.7636);
SetPlayerFacingAngle(playerid, 181.1656);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 3:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.3218,-2591.4336,11.6749);
SetPlayerFacingAngle(playerid, 54.3897);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 4:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2231,-2577.5161,11.6730);
SetPlayerFacingAngle(playerid, 186.2809);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 5:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2586.3330,-2581.8542,11.6532);
SetPlayerFacingAngle(playerid, 173.5594);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 6:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2572.1123,-2608.9583,11.7390);
SetPlayerFacingAngle(playerid, 274.3050);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 7:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2564.0518,-2583.3218,11.6561);
SetPlayerFacingAngle(playerid, 122.2349);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 8:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2557.5889,-2590.8477,11.6737);
SetPlayerFacingAngle(playerid, 224.8839);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 9:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2566.6692,-2591.4502,11.6753);
SetPlayerFacingAngle(playerid, 183.9388);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 10:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.0515,-2599.9429,2.2316);
SetPlayerFacingAngle(playerid, 263.0124);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 30, 300);
GivePlayerWeapon(playerid,34,10);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
IsInDM[playerid] = 1;
SendClientMessage(playerid, COLOR_RED, "Willkommen beim Atomkraftwerk DM");
format(atom, sizeof(atom), "[Teleport] %s has teleported to /atomdm - Atomkraftwerk DM", playerName);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ReceiveInfo[i] == true)
{
SendClientMessage(i, COLOR_LIGHTBLUE, atom);
}
}
}
return 1;Bei OnPlayerSpawn:
new RandomSpawn = random(11);
if(IsInDM[playerid] == 1)
{
switch(RandomSpawn)
case 0:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2606.7253,-2598.6284,11.6743);
SetPlayerFacingAngle(playerid, 43.2817);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 1:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2604.5342,-2584.0771,15.2590);
SetPlayerFacingAngle(playerid, 196.3778);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 2:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2593.9360,-2577.2756,11.7636);
SetPlayerFacingAngle(playerid, 181.1656);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 3:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.3218,-2591.4336,11.6749);
SetPlayerFacingAngle(playerid, 54.3897);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 4:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2231,-2577.5161,11.6730);
SetPlayerFacingAngle(playerid, 186.2809);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 5:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2586.3330,-2581.8542,11.6532);
SetPlayerFacingAngle(playerid, 173.5594);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 6:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2572.1123,-2608.9583,11.7390);
SetPlayerFacingAngle(playerid, 274.3050);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 7:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2564.0518,-2583.3218,11.6561);
SetPlayerFacingAngle(playerid, 122.2349);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 8:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2557.5889,-2590.8477,11.6737);
SetPlayerFacingAngle(playerid, 224.8839);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
case 9:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2566.6692,-2591.4502,11.6753);
SetPlayerFacingAngle(playerid, 183.9388);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
case 10:
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2587.0515,-2599.9429,2.2316);
SetPlayerFacingAngle(playerid, 263.0124);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
GivePlayerWeapon(playerid, 24, 40);
GivePlayerWeapon(playerid, 30, 300);
GivePlayerWeapon(playerid,34,10);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50);
return 1;
} -
Dann post doch mal die Commands >.> (die in Strcmp oder was auch immer)
-
hatte ich auch oft
-
Bei einem GangWar Script muss ein Turf System rein find ich..
/edit: Bin für Download.. sowas kann jeder ist ja nicht viel .. hast du nur einen Befehl ? o.o -
Erros:
Zeile (3126) : error 035: argument type mismatch (argument 1)
Zeile (3127) : error 035: argument type mismatch (argument 3)
Zeile (3126) : Unbenutzte Variable: "NeuesPW"Die Zeilen:
new NeuesPW = udb_hash(NewPass);
dini_Set(save, "passwort", NeuesPW);
/edit: es klappt immernoch nicht bitte hilft mir mal -
würde lieber nen bool benutzen..
also:
new bool:fv;
public OnPlayerCommandText()
{
if (strcmp(cmd, "/antibike", true) == 0)
{
if (fv == false)
{
SendClientMessage(playerid,0xFF0000,"Anti Bike Fall Off aktiviert!");
fv = true;
}
else if (fv == true)
{
fv = false;
SendClientMessage(playerid,0xFF0000,"Anti Bike Fall off deaktiviert!");
}
}
}public OnPlayerExitVehicle(playerid, vehicleid)
{
if (fv == true)
{
new vid = GetPlayerVehicleID(vehicleid);
PutPlayerInVehicle(playerid, vid, 1);
}
} -
das müsste das [ oder das ] sein aber weiß nicht bei welchem font das ist
-
Terroristen,
Beim letzten kommt kein komma
also:
enum Kasse
{
SEK, //73
Terroristen //74
} -
Hallo, eben als ich auf meinem Server war, kam ein User on.
Was ich komisch fand, er hatte plötzlich Admin Rank 5Wie geht das? Mein Admin System ist mit Dini gemacht.
Hat sich der Spieler registriert und hatte aufeinmal die Admin Rechte? wenn ja setzt das admin level des spieler auf 0 in der registration...
hatte ich auch mal bei meinem selfmade als ich ein /aond cmd gescriptet habe :O -
ach mist mein fehler >.> noch ne frage/problem, würde das so mit "z" klappen?:
dcmd_veh(playerid,params[])
{
if(loggedin[playerid] != true) return SCM(playerid,COLOR_WHITE,"SERVER: Du bist nicht eingeloggt!");
if(pInfo[playerid][admin] < 3) return SCM(playerid,COLOR_GREY,"Du bist kein Admin!");
new carid,color1,color2,locked;
if(sscanf(params,"diiz",carid,color1,color2,locked)) return SendClientMessage(playerid,COLOR_GREY,"Benutze: /veh [Fahrzeug ID] [Farbe 1] [Farbe 2] [Locked 0/1]");
if(carid < 399 || carid > 612) return SCM(playerid,COLOR_GREY,"Inkorrekte AutoID");
if(color1 < 0 || color1 > 252) return SCM(playerid,COLOR_GREY,"Inkorrekte FarbID");
if(color2 < 0 || color2 > 252) return SCM(playerid,COLOR_GREY,"Inkorrekte FarbID");
if(locked < 0 || locked > 1) return SendClientMessage(playerid,COLOR_GREY,"Benutze: /veh [Fahrzeug ID] [Farbe 1] [Farbe 2] [Locked 0/1]");
new Float:X,Float:Y,Float:Z,Float:Angle, veh;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
veh = CreateVehicle(carid,X,Y,Z,Angle,color1,color2,-1);
PutPlayerInVehicle(playerid,veh,0);
switch(locked)
{
case 0: AutoSchloss[veh] = 0;
case 1: AutoSchloss[veh] = 1;
}
return 1;
} -
Hab mir nen Befehl gemacht aber wenn ich
ich tippe : "/useequip 2" und bekomme nixmein befehl:
dcmd_useequip(playerid, params[])
{
if(loggedin[playerid] != true) return SCM(playerid,COLOR_WHITE,"SERVER: Du bist nicht eingeloggt!");
if(pInfo[playerid][admin] < 3) return SCM(playerid,COLOR_GREY,"Du bist kein Admin!");
new equip;
if(sscanf(params,"s",equip))
{
SendClientMessage(playerid,COLOR_GREY,"Benutze: /useequip [Waffenpack Nummer]");
SendClientMessage(playerid, COLOR_GREEN, "|_______ Waffenpacks _______|");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 1: Alle Waffen weglegen 2: Standartpack");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "| 3: Spezialpack 4: none");
}
switch(equip)
{
case 1: { ResetPlayerWeapons(playerid); }
case 2:
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 31, 999);
}
case 3:
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 4, 0);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 34, 999);
GivePlayerWeapon(playerid, 46, 999);
GivePlayerWeapon(playerid, 18, 5);
}
case 4: { SCM(playerid, COLOR_LIGHTGREEN, "Error: none"); }
}
return 1;
}
Aber es will i-wie nicht klappen! bitte hilft mir mal