player to player tp
#2

In ZCMD:

pawn Код:
CMD:tp(playerid, params[])
{
    new id, Float:pos[3];
    if(!IsPlayerAdmin(playerid))
        return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a rcon admin");
    if(sscanf(params, "u", id))
        return SendClientMessage(playerid, COLOR_LIGHTRED, "USAGE: /tp [playerid/PON]");
    if(!IsPlayerConnected(id))
        return SendClientMessage(playerid, COLOR_LIGHTRED, "Playerid is an invalid playerid");
    GetPlayerPos(id, pos[0], pos[1], pos[2]);
    SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
    SendClientMessage(playerid, COLOR_YELLOW, "Successfully teleported to your target");
    return 1;
}
Reply


Messages In This Thread
player to player tp - by Demon4511 - 24.08.2013, 22:10
Re: player to player tp - by PaulDinam - 24.08.2013, 22:14
Re: player to player tp - by Pottus - 24.08.2013, 22:19
Re: player to player tp - by PaulDinam - 24.08.2013, 22:22
Re: player to player tp - by SmOkEwOw - 24.08.2013, 22:24
Re: player to player tp - by Demon4511 - 24.08.2013, 22:26
Re: player to player tp - by SmOkEwOw - 24.08.2013, 22:28
Re: player to player tp - by Demon4511 - 24.08.2013, 22:36
Re: player to player tp - by Vanter - 24.08.2013, 22:46
Re: player to player tp - by Demon4511 - 25.08.2013, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)