SA-MP Forums Archive
question - 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: question (/showthread.php?tid=320431)



question - viddo - 22.02.2012

I got a question about setplayerpos :

I got like 3 mapped cells next to each other and i want to make like 1 cmd that's /entercell for players, i made the ifplayerinrangeofpoint on the 3 cells and made pickups for them, but the question is: how can i make a 3 different player position with ONE cmd !?


Re: question - coole210 - 22.02.2012

pawn Код:
if(IsPlayerInRangeOfPoint(blahblah location 1))
{

}
else if(IsPlayerInRangeOfPoint(blahblah location 2))
{

}
else if(IsPlayerInRangeOfPoint(blahblah location 3))
{

}
else
{
SendClientMessage(playerid,COLOR,"You aren't near the cells..................... jeez");
}