25.07.2010, 03:45
My script not cmd /quitfaction for leader and i will put this cmd but how to put the cmd?
|
My script not cmd /quitfaction for leader and i will put this cmd but how to put the cmd?
|
if(strcmp(cmd,"/quitfaction",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] >= 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED,"* You have quit your faction, you're now a civilian.");
PlayerInfo[playerid][pTeam] = TEAM_GREEN;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pLeader] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not in a faction or are the leader!");
}
}
return 1;
}