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