SA-MP Forums Archive
How to check if player has 5 score - 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: How to check if player has 5 score (/showthread.php?tid=122114)



How to check if player has 5 score - JoeDaDude - 20.01.2010

Im making a robbery command,
And your score needs to be "5" before you can rob,
What would i put so it checks to see what there score is


Re: How to check if player has 5 score - bobmarley137 - 20.01.2010

pawn Код:
CMD:rob(playerid, params[]) //(ZCMD)
{
    if(GetPlayerScore(playerid) >= 5)
    {
        // Continue
    }
}



Re: How to check if player has 5 score - JoeDaDude - 20.01.2010

Thanks


Re: How to check if player has 5 score - JoeDaDude - 20.01.2010

Oh Btw Would i be able to use that for GetPlayerPos too?

Soz for double post


Re: How to check if player has 5 score - Doppeyy - 20.01.2010

Quote:
Originally Posted by JoeDaDude
Oh Btw Would i be able to use that for GetPlayerPos too?

Soz for double post
I think if you want to check if someone is close to a point you have to use IsPlayerToPoint.

[Doppeyy