/gotopos command
#4

pawn Код:
CMD:gotopos(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new targetid;
        if(sscanf(params, "u", targetid)) SendClientMessage(playerid,-1,""chat" /gotopos [playerid]");
        if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

        new Float:x,Float:y,Float:z,inter;
        GetPlayerPos(targetid,Float:x,Float:y,Float:z);
        inter = GetPlayerInterior(targetid);
        SetPlayerPosEx(playerid,Float:x,Float:y,Float:z,inter,0);
    }
    else {
        SendClientMessage(playerid,-1,""chat""COL_GREY" You cannot use this command");
    }
    return 1;
}
Try this as I didn't test it.
You need ZCMD and SSCANF includes.
Reply


Messages In This Thread
/gotopos command - by Kirchhoff - 16.05.2013, 11:12
Re: /gotopos command - by Red_Dragon. - 16.05.2013, 11:13
Re: /gotopos command - by Kirchhoff - 16.05.2013, 11:15
Re: /gotopos command - by Red_Dragon. - 16.05.2013, 11:18
Re: /gotopos command - by Pillhead2007 - 16.05.2013, 11:29
Re: /gotopos command - by Kirchhoff - 16.05.2013, 11:43
Re: /gotopos command - by jordy.kiesebrink - 16.05.2013, 11:47
Re: /gotopos command - by Latisha - 16.05.2013, 11:52
Re: /gotopos command - by SilverKiller - 16.05.2013, 11:54
Re: /gotopos command - by Red_Dragon. - 16.05.2013, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)