Help with this !
#1

Okay, i have made a jail command using ZCMD and sscanf it works fine but the player can just teleport out of the jail when hes in there, since im using ZCMD i cant put it underneath OnPlayerCommandText and everything is way more harder and annoying, can somebody show me why this isnt working:

pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
    if(PlayerInfo[playerid][Jailed] == 1)
    {
        return 0;
    }
    return 1;
}
this doesn't disable any commands at all and I recieve Server: Unknown Command on evvery command even though the commands work, i have also tried setting the second return to 0 but that doesnt work either
Reply


Messages In This Thread
Help with this ! - by mrcoolballs - 14.09.2010, 13:41
Re: Help with this ! - by Leeroy. - 14.09.2010, 14:15
Re: Help with this ! - by LarzI - 14.09.2010, 14:17
Re: Help with this ! - by mrcoolballs - 14.09.2010, 14:42

Forum Jump:


Users browsing this thread: 1 Guest(s)