22.11.2009, 15:30
Hey, i made it that if /new check ifisplayerinrangeofpoint do this else do blabla
It works but I Fail in making it SetPlayerPos If playerisinrangepoint ,1968.4852,-2207.1484,13.5469 And 2015.1097,1546.3257,10.9667 there too!!! Please help me cose i want /new to transport player to the Setplayerpos if player is in those 2 places i wrote above, else sendclientmessage go to your spawn point
THANKS!!
pawn Код:
if(strcmp(cmdtext, "/new") == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 9.0, 1958.3783,1343.1572,15.3746))
{
SetPlayerPos(playerid,3057.6040,-1884.7632,1.9765);
return 1;
}
else
{
SendClientMessage(playerid,red,"Go To Your spawn point");
return 1;
}
}
THANKS!!