Need 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: Need help (
/showthread.php?tid=308348)
Need help -
Face9000 - 03.01.2012
Ok so,i'm creating a rob place system and i've the coordinates of some places to let the player rob.
I'm using:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, ORANGE, The X,Y,Z)) || !IsPlayerInRangeOfPoint(playerid, X,Y,Z) || !IsPlayerInRangeOfPoint(playerid, X,Y,Z))
And so on,the problem is,i need to show in the chat what place has robbed the player,ex:
Player1 has robbed %s$ from PlaceName.
How to add this?
Re: Need help -
Face9000 - 03.01.2012
BUMP
Re: Need help -
Norck - 03.01.2012
Here you go:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, ORANGE, The X,Y,Z))
{
// player has robbed first place
}
else if(IsPlayerInRangeOfPoint(playerid, ORANGE, The X,Y,Z))
{
// player has robbed second place
}
else if(IsPlayerInRangeOfPoint(playerid, ORANGE, The X,Y,Z))
{
// player has robbed third place
}
// etc.