23.11.2009, 12:40
Quote:
Originally Posted by patchkinson
Hey, i made it that if /new check ifisplayerinrangeofpoint do this else do blabla
pawn Код:
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);
}
else
SendClientMessage(playerid,red,"Go To Your spawn point");
return 1;
}
thats how it should look you only should return 1;
at the end if cmd :]
tho u didn't need the else brackets^^