PDA

View Full Version : Convert to zcmd


Spartaaaaa
10/05/2014, 09:38 AM
Hello i need this commands convert to zcmd

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

Spartaaaaa
10/05/2014, 10:03 AM
Bump :o

Deal-or-die
10/05/2014, 10:15 AM
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

Spartaaaaa
10/05/2014, 10:18 AM
Bro, i just need to someome convert this command to zcmd.