07.05.2011, 14:50
Like this? using zcmd and sscanf
pawn Код:
COMMAND:gotopos(playerid, params[])
{
new Float:PosX, Float:PosY, Float:PosZ;
if(sscanf(params, "fff", PosX, PosY, PosZ)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /gotopos (x) (y) (z)");
{
new string[128];
format(string, sizeof(string), "You have teleported to X: %f Y: %f Z: %f", , PosX, PosY, PosZ);
SendClientMessage(playerid, 0xFFFFFFAA, string);
SetPlayerPos(playerid, PosX, PosY, PosZ);
}
return 1;
}