17.04.2011, 18:51
try something like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/cmd", cmdtext, true, 4) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, X, Y. Z)) //Pickup coords
{
SetPlayerPos(playerid, x, y, z);
}
return 1;
}
return 0;
}