Beim Befehl /animlist bekomme ich die Meldung "SERVER: Unknow Command"
if (strcmp("/animlist", cmdtext, true) == 0)
{
new string[500];
new string1[250];
new string2[250];
new string3[250];
new string4[250];
new string5[250];
new string6[250];
new string7[250];
new string8[250];
new string9[250];
new string10[250];
new string11[250];
new string12[250];
new string13[128];
format(string1,sizeof(string1),"|__ - Animationen - __|");
format(string2,sizeof(string2),"/handsup, /dance[1-4], /rap, /rap2, /rap3, /wankoff, /wank, /strip[1-7], /sexy[1-8], /bj[1-4], /cellin, /cellout, /lean, /piss, /follow");
format(string3,sizeof(string3),"/greet, /injured, /injured2, /hitch, /bitchslap, /cpr, /gsign1, /gsign2, /gsign3, /gsign4, /gsign5, /gift, /getup");
format(string4,sizeof(string4),"/chairsit, /stand, /slapped, /slapass, /drunk, /gwalk, /gwalk2, /mwalk, /fwalk, /celebrate, /celebrate2, /win, /win2");
format(string5,sizeof(string5),"/yes, /deal, /deal2, /thankyou, /invite1, /invite2, /sit, /scratch, /bomb, /getarrested, /laugh, /lookout, /robman");
format(string6,sizeof(string6),"/crossarms, /crossarms2, /crossarms3, /lay, /cover, /vomit, /eat, /wave, /crack, /crack2, /smokem, /smokef, /msit, /fsit");
format(string7,sizeof(string7),"/chat, /fucku, /taichi, /chairsit, /relax, /bat1, /bat2, /bat3, /bat4, /bat5, /nod, /cry1, /cry2, /chant, /carsmoke, /aim");
format(string8,sizeof(string8),"/gang1, /gang2, /gang3, /gang4, /gang5, /gang6, /gang7, /bed1, /bed2, /bed3, /bed4, /carsit, /carsit2, /stretch, /angry");
format(string9,sizeof(string9),"/kiss1, /kiss2, /kiss3, /kiss4, /kiss5, /kiss6, /kiss7, /kiss8, /exhausted, /ghand1, /ghand2, /ghand3, /ghand4, /ghand5");
format(string10,sizeof(string10),"/basket1, /basket2, /basket3, /basket4, /basket5, /basket6, /akick, /box, /cockgun");
format(string11,sizeof(string11),"/bar1, /bar2, /bar3, /bar4, /lay2, /liftup, /putdown, /die, /joint, /die2, /aim2");
format(string12,sizeof(string12),"/benddown, /checkout");
format(string13,sizeof(string13),"Um die Animation abzubrechen, drücke einfach die Leertaste");
format(string,sizeof(string),"%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s",string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13);
ShowPlayerDialog(playerid,DIALOG_ANIM,DIALOG_STYLE_MSGBOX,"Animationsliste",string,"Ok","Abbrechen");
return 1;
}
Und ich will gerne den Befehl /givefueherschein einabeun, um Admins Spielern den FS zu geben:
FS Script: http://pastebin.com/w4GXN2i8
Mein Befehl:
ocmd:givefueherschein(playerid,params[])
{
new string[128],player;
if(sscanf(params,"u",player))return SendClientMessage(playerid,BLAU,"[Benutzung]: /givefueherschein [Name/ID]");
if(isPlayerAnAdmin(playerid,3))
{
DisablePlayerRaceCheckpoint(playerid);
new v = GetPlayerVehicleID(playerid);
new Float:vhp;
GetVehicleHealth(v, vhp);
new Float:Dif = ((PlayerData[playerid][VH] / 10) - (vhp / 10));
PlayerData[playerid][CP] = -1;
if(Dif <= 2)
{
new sendername[MAX_PLAYER_NAME],playername[MAX_PLAYER_NAME];
GetPlayerName(player,sendername,sizeof sendername);
GetPlayerName(playerid,playername,sizeof playername);
format(string,sizeof string,"Admin %s hat dir den Führerschein gegeben.",playername);
SendClientMessage(player,BLAU,string);
SetPVarInt(playerid, "SgtDL", 1);
PlayerData[playerid][CP] = -1;
format(string,sizeof string,"Du hast %s einen Führerschein gegeben.",sendername);
SendClientMessage(playerid,BLAU,string);
SpielerSpeichern(playerid);
}
}
return 1;
}
Funktioniert nicht