mein invite befehl geht nicht da steht du bist kein leader-.-
mein code:
ocmd:makeleader(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,3))return SendClientMessage(playerid,ROT,"Rang zu Niedrig.");
new pID,fID, string[128], name[128];
if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,BLAU,"/makeleader [playerid] [fraktionsid]");
if(fID<1||fID>9)return SendClientMessage(playerid,ROT,"Bitte gültigen Rang angeben.");
SetPVarInt(pID,"Fraktion",fID);
SetPVarInt(pID,"Leader",1);
SetPVarInt(pID,"Rang",6);
GetPlayerName(playerid, name, 24);
format(string, sizeof(string), "* Du wurdest von %s zum Leader der %s gemacht!", name,fID);
SendClientMessage(pID, BLAU, string);
GetPlayerName(pID, name, 24);
format(string, sizeof(string), "Du hast %s Leader der Fraktion %s gemacht!", name,fID);
SendClientMessage(playerid, BLAU, string);
if(fID== 2)
{
GetPVarInt(playerid,"Skin");
SetPlayerSkin(playerid,127);
}
if(fID==5)
{
GetPVarInt(playerid,"Skin");
SetPlayerSkin(playerid,120);
}
if(fID==6)
{
GetPVarInt(playerid,"Skin");
SetPlayerSkin(playerid,123);
}
if(fID==7)
{
GetPVarInt(playerid,"Skin");
SetPlayerSkin(playerid,114);
}
return 1;
}