27.07.2013, 15:52
What do you mean by "it doesn't work"? It doesn't compile? It doesn't set your position in-game?
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <sscanf2>
#include <zcmd>
CMD:xgoto(playerid, params[])
{
new Float:x, Float:y, Float:z;
if (sscanf(params, "fff", x, y, z)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /xgoto [X Pos] [Y Pos] [Z Pos]");
SetPlayerPos(playerid, x, y, z);
new string[100];
format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
return 1;
}