How add cmd /quitfaction?
#1

My script not cmd /quitfaction for leader and i will put this cmd but how to put the cmd?
Reply
#2

Quote:
Originally Posted by gondes
Посмотреть сообщение
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;
	}
That might help :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)