[Include] SendVehicleToPlayer.inc
#3

Quote:
Originally Posted by newbie scripter
Посмотреть сообщение
pawn Код:
CMD:BringCar(playerid, params[])
{
    new vehid;
    if(sscanf(params, "i", vehid)) return SendClientMessage(playerid, -1, "USAGE : /bringcar [Vehicle Id]");
    for(new i = 0, k = MAX_VEHICLES; i < k; i++)
    {
        if( i == vehid)
        {
             new Float:x, Float:y, Float:z;
             GetPlayerPos(playerid, x, y, z);
             SetVehiclePos(vehid, x + 5, y + 5, z);
             PutPlayerInVehicle(playerid, vehid);
        }
        else return SendClientMessage(playerid, -1, "ERROR: Invalid Vehicle ID");
    }
    return 1;
}
this code is changed into an include, havent tested it thou it might be useful.
Purpose of this thread is not to convert OP's code to a single untested command (just so you know, posting untested code is against rules). You should rather comment like 'nice job' whatsoever or dont post at all

--

OT:

Good werk mate
Reply


Messages In This Thread
SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 13:46
Re: SendVehicleToPlayer.inc - by newbie scripter - 04.01.2014, 13:53
Re: SendVehicleToPlayer.inc - by fiki574 - 04.01.2014, 14:06
Re: SendVehicleToPlayer.inc - by Konstantinos - 04.01.2014, 14:20
Re: SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 14:23
Re: SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 14:28
Re: SendVehicleToPlayer.inc - by iZN - 04.01.2014, 17:03
Re: SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 17:07
Re: SendVehicleToPlayer.inc - by newbie scripter - 05.01.2014, 04:06
Re: SendVehicleToPlayer.inc - by Abagail - 05.02.2014, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)