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
#2

return 0;

^^ thats the prob
Reply
#3

Quote:
Originally Posted by leeroy1337
Посмотреть сообщение
return 0;

^^ thats the prob
Not at all.
Try usinc zcmd_OnPlayerCommandText (?)
It's just a suggestion, I don't know how to fix elseway.
Reply
#4

damn, unfortunetly that didn't work, anyone else have any suggestions or will I be forced to convert my entire script into dcmd? (11000 lines)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)