31.12.2010, 14:57
You need these things.
Sscanf2
Zcmd
lol here's cmd i've created for u.
Wiki Fast Commands with sscanf
Sscanf2
Zcmd
lol here's cmd i've created for u.
pawn Code:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
command(goto, playerid, params[])
{
new ID;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, 0xF97804FF, "USAGE: /goto [id]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, 0xF97804FF, "Player is not connected!");
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
}
return 1;
}