Help with this ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with this ! (
/showthread.php?tid=176707)
Help with this ! -
mrcoolballs - 14.09.2010
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
Re: Help with this ! -
Leeroy. - 14.09.2010
return 0;
^^ thats the prob
Re: Help with this ! -
LarzI - 14.09.2010
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.
Re: Help with this ! -
mrcoolballs - 14.09.2010
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)