Goto command with sscanf, zcmd
#2

You need these things.
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;
}
Wiki Fast Commands with sscanf
Reply


Messages In This Thread
Goto command with sscanf, zcmd - by PlayerID - 31.12.2010, 14:53
Re: Goto command with sscanf, zcmd - by HyperZ - 31.12.2010, 14:57
Re: Goto command with sscanf, zcmd - by PlayerID - 31.12.2010, 14:59
Re: Goto command with sscanf, zcmd - by HyperZ - 31.12.2010, 15:00
Re : Goto command with sscanf, zcmd - by timaoux - 30.07.2011, 22:43
Re: Re : Goto command with sscanf, zcmd - by Kush - 30.07.2011, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)