Quote:
Originally Posted by Mean
IsPlayerInRangeOfPoint should do the work
like
pawn Код:
public OnPlayerSpawn(playerid) { if(IsPlayerInRangeOfPoint(playerid, los, santos, spawn, 15)) { SendClientMessage(playerid, COLOR, "You spawned in Los Santos"); } if(IsPlayerInRangeOfPoint(playerid, san, fierro, spawn, 15)) { SendClientMessage(playerid, COLOR, "You spawned in San fierro"); } // And so on... return 1; }
Replace these los, santos, spawn with X, Y and Z of thoose spawns, and replace the COLOR.
|
And what is the 15?
And where can I change the angle?
Quote:
Originally Posted by Mikkel_Pedersen
When you're saying it doesn't work, do you mean that it compiles with errors, or that it shows something else in the chat in the server? I got an idea why it could be showing some numbers instead of the actual name, but I want to hear what exactly isn't working before replying with a possible helpful reply.
|
Its just doesn't do anything when I am typing /ls /sf /lv etc..