30.04.2012, 12:00
You clearly do not know how to use SetPlayerPos.
Try this:
Quote:
|
Parameters: (playerid,Float ,Float:y,Float:z) |
pawn Код:
CMD:findbot(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
for(new b=0; b<MAX_PLAYERS; b++)
{
if(IsPlayerNPC(b))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(b, X, Y, Z);
}
}
SetPlayerPos(i, X, Y, Z);
SendClientMessage(i, -1, "You arrived successfully");
return 1;
}
else return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
}


,Float:y,Float:z)