17.01.2011, 21:13
Made it quickly and havent tested it but it should work:
pawn Код:
COMMAND:gotopos(playerid, params[])
{
new Float:PosX,Float:PosY,Float:PosZ;
if(!sscanf(params, "fff",PosX,PosY,PosZ))
{
SetPlayerPos(playerid, PosX,PosY,PosZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to your desired pos.");
}
else return SendClientMessage(playerid, 0xFFFFFFFF,"Usage: /gotopos [X][Y][Z]");
return 1;
}