Convert to zcmd
#1

Hello i need this commands convert to zcmd

Code:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
	//--------------------------------------------------------------------------
	if(GetPVarInt(playerid, "PlayerInDM") == 1 || GetPVarInt(playerid, "PlayerInRace") == 1 || GetPVarInt(playerid, "PlayerInGifts") == 1)
	{
	    //----------------------------------------------------------------------
 		if(strcmp(cmdtext, 	"/leave", 	true   ) == 0) 			return 0;
 		if(strcmp(cmdtext, 	"/ad", 		true   ) == 0) 			return 0;
 		if(strcmp(cmdtext,  "/myskin",  true   ) == 0)          return 0;
		if(strcmp(cmdtext, 	"/cmds", 	true   ) == 0) 			return 0;
		if(strcmp(cmdtext,  "/skin",    true   ) == 0)         	return 0;
		//----------------------------------------------------------------------
 		else GameTextForPlayer(playerid, "~w~Use ~r~/Leave~w~ to leave!", 6000, 4);
 		return 1;
	}
	//--------------------------------------------------------------------------
	if(GetPVarInt(playerid, "Jailed") == 1)
	{
	    SendClientMessage(playerid, red, "ERROR: You cannot use commands in Jail!");
		return 1;
	}
	//--------------------------------------------------------------------------
	else return 0;
}
Reply


Messages In This Thread
Convert to zcmd - by Spartaaaaa - 10.05.2014, 09:38
Re: Convert to zcmd - by Spartaaaaa - 10.05.2014, 10:03
Re: Convert to zcmd - by Deal-or-die - 10.05.2014, 10:15
Re: Convert to zcmd - by Spartaaaaa - 10.05.2014, 10:18

Forum Jump:


Users browsing this thread: