/goto help [REP]
#6

Quote:
Originally Posted by doreto
Посмотреть сообщение
and if you wonna to tp to player wich your vehicle
PHP код:
CMD:goto(playeridparams[])
{
    new 
ID;
    if(
sscanf(params"u"ID)) SendClientMessage(playerid, -1"USAGE: /goto [playerid]");
    else if(
IsPlayerConnected(ID) == 0SendClientMessage(playerid, -1"Player is not connected!");
    else
    {
        new 
Float:XFloat:YFloat:ZFloat:Angle;
        if(
IsPlayerInAnyVehicle(ID))GetVehiclePos(GetPlayerVehicleID(ID), XYZ), GetVehicleZAngle(GetPlayerVehicleID(ID), Angle);
        else 
GetPlayerPos(IDXYZ), GetPlayerFacingAngle(playeridAngle);
        if(
IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid), X+1.0Y+1.0Z), SetVehicleZAngle(GetPlayerVehicleID(playerid), Angle);
        else 
SetPlayerPos(playeridX+1.0Y+1.0Z), SetPlayerFacingAngle(playeridAngle);
    }
    return 
true;

wtf: it needs a params when i add #pragma unused params it will give me 2 warnings
WTF?
Reply


Messages In This Thread
/goto help [REP] - by James Coral - 26.03.2012, 10:18
Re: /goto help [REP] - by Bogdan1992 - 26.03.2012, 10:21
Re: /goto help [REP] - by doreto - 26.03.2012, 10:24
Re: /goto help [REP] - by James Coral - 26.03.2012, 10:25
Re: /goto help [REP] - by Rafa - 26.03.2012, 10:27
Re: /goto help [REP] - by James Coral - 26.03.2012, 10:27
Re: /goto help [REP] - by Bogdan1992 - 26.03.2012, 10:28
Re: /goto help [REP] - by Zxdsl - 26.03.2012, 10:28
Re: /goto help [REP] - by James Coral - 26.03.2012, 10:30
Re: /goto help [REP] - by doreto - 26.03.2012, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)