21.08.2012, 10:49
I've created a clan system i wanna realse it here soon but i got this problem every time i made my self leader of clan and make my self player again i got this at the ini file
I donnu what i can do to fix it i made an admin system and its working well but this isn't working.
the command
Код:
Member of clan = 2 Leader of clan = 2 Member of clan = 0 Leader of clan = 0
the command
pawn Код:
CMD:makeclanleader(playerid,params[])
{
new id,str[128],level,pName[32],vName[32],cName[42];
if(IsPlayerAdmin(playerid))
{
if(sscanf(params,"ui",id,level)) return SendClientMessage(playerid,-1,"Usage: /makeclanleader [id] [clanid]");
else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED1,"Player Not found");
if(level > 2 || level < 0) return SendClientMessage(playerid,COLOR_RED1,"Don't under 0 and above 2");
if(level == 0)
{
cName = "None";
}
else if(level == 1)
{
cName = "Riders of the Roads"; // My clan if you wanna use this FS
}
else if(level == 2)
{
cName = " Elite Drifters"; // Admins clan
}
pInfo[playerid][Leader] = level;
pInfo[playerid][Member] = level;
GetPlayerName(playerid,pName,32);
GetPlayerName(id,vName,32);
format(str,sizeof(str),"Admin %s has made %s The leader of %s",pName,vName,cName);
SendClientMessageToAll(COLOR_LIGHTBLUE,str);
}
else
{
SendClientMessage(playerid,COLOR_RED1,"Rcon admins only");
}
return 1;
}