/goto command.
#1

How to send to the admin , You teleported to X with succes , when is use /goto X.
PHP код:
CMD:goto(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin] >=|| IsPlayerAdmin(playerid))
    {
    new 
ID;
    new 
Float:X;
    new 
Float:Y;
    new 
Float:Z;
    new 
Float:A;
    if(
sscanf(params,"i"ID)) return SendClientMessage(playerid,-1,"{40FF00}INFO:{FFFFFF}Foloseste /goto [Name/id]");
    
GetPlayerPos(IDX,Y,Z);
    
GetPlayerFacingAngle(IDA);
    
SetPlayerPos(playeridX,Y,Z);
    
SetPlayerFacingAngle(playeridA);
    return 
1;
    }
    else return 
SendClientMessage(playerid,-1,"You do not have permission to use this command!");

Reply


Messages In This Thread
/goto command. - by Calinut200 - 27.10.2018, 15:24
Re: /goto command. - by v1k1nG - 27.10.2018, 15:34
Re: /goto command. - by TadePoleMG - 27.10.2018, 15:37
Re: /goto command. - by GTLS - 28.10.2018, 06:45
Re: /goto command. - by TheToretto - 28.10.2018, 08:21
Re: /goto command. - by Infin1ty - 28.10.2018, 08:47
Re: /goto command. - by GTLS - 30.10.2018, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)