14.09.2010, 13:41
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:
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
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
if(PlayerInfo[playerid][Jailed] == 1)
{
return 0;
}
return 1;
}