SA-MP Forums Archive
Convert to zcmd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Convert to zcmd (/showthread.php?tid=512320)



Convert to zcmd - Spartaaaaa - 10.05.2014

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;
}



Re: Convert to zcmd - Spartaaaaa - 10.05.2014

Bump


Re: Convert to zcmd - Deal-or-die - 10.05.2014

Sorry buddy I have no idea on how to fix your problem or what ever. Just letting ya know that you're not allowed to bump your post within 24 hours of the original post.

Cheers


Re: Convert to zcmd - Spartaaaaa - 10.05.2014

Bro, i just need to someome convert this command to zcmd.