SA-MP Forums Archive
Command Help - 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)
+--- Thread: Command Help (/showthread.php?tid=336170)



Command Help - Unknown1195 - 21.04.2012

Hey guys I want create a command that when a player IsInRangeOfPoint x,y,z he types /escape and his Jail time becomes:
Код:
PlayerInfo[i][pJailTime] = 0;
I tried out a couple of time's but I wasn't able to do it I know it's easy but I can't understand where I am mistaken..

Thanks for the help; Unknown1195


Re: Command Help - Roel - 21.04.2012

pawn Код:
if (strcmp("/escape", cmdtext, true, 10) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid,3.0,X POS, Y POS, Z POS))
        {
              PlayerInfo[i][pJailTime] = 0;
        }
        return 1;
    }