/quitfaction command
#5

If not try this

Код:
	if(strcmp(cmd, "/quitteam", true) == 0)
	{
		if(PlayerInfo[playerid][pMember] == 0)
		{
			SendClientMessage(playerid, COLOR_GREY, "  You are Civilian. Can't do that !");
			return 1;
		}
		if(PlayerInfo[playerid][pLeader] > 0)
		{
			SendClientMessage(playerid, COLOR_GREY, "  Ask an admin to remove your leader !");
			return 1;
		}
		{
			SendClientMessage(playerid, COLOR_YELLOW, "You are now a Civilian again !");
			PlayerInfo[playerid][pMember] = 0;
			PlayerInfo[playerid][pTeam] = 3;
			gTeam[playerid] = 3;
			PlayerInfo[playerid][pRank] = 0;
			PlayerInfo[playerid][pLeader] = 0;
			PlayerInfo[playerid][pChar] = 0;
			SetPlayerToTeamColor(playerid);
			SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
			return 1;
		}
	}
Reply


Messages In This Thread
/quitfaction command - by pierhs - 07.05.2009, 16:10
Re: /quitfaction command - by killerx100 - 07.05.2009, 16:28
Re: /quitfaction command - by Alion133 - 09.05.2009, 03:10
Re: /quitfaction command - by Dark_Kostas - 09.05.2009, 06:58
Re: /quitfaction command - by arachimi - 09.05.2009, 08:44
Re: /quitfaction command - by ralf12 - 03.08.2009, 05:51
Re: /quitfaction command - by pierhs - 04.08.2009, 06:21

Forum Jump:


Users browsing this thread: 1 Guest(s)