Need help
#1

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

BUMP
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)