Help me more !
#1

Is it possible to spawn a vehicle at a players position when doing a command.
Reply
#2

Yes, it is possible, not that hard
Reply
#3

How can i do it?
Reply
#4

Create a command. Afterwards, GetPlayerPos and CreateVehicle. Lastly, PutPlayerInVehicle if you want and the closing brackets.
Reply
#5

Quote:
Originally Posted by kingcrome
Посмотреть сообщение
How can i do it?
Scripting, of course, One moment, I'm writing you the code

EDIT: This is a quick sample of the code
pawn Код:
CMD:createveh(playerid, params[])
{
    new
        VehicleID, CarColor[2], Position[4];

    if(sscanf(params, "iii", VehicleID, CarColor[0], CarColor[1]))
        return SendClientMessage(playerid, -1, "Syntax: /createveh [Vehicle ID] [Color 1] [Color 2]");

    GetPlayerPos(playerid, Position[0], Position[1], Position[2]), GetPlayerFacingAngle(playerid, Position[4]);

    CreateVehicle(VehicleID, Position[0], Position[1], Position[2], Position[3], CarColor[0], CarColor[1], 300);
    return true;
}
Reply
#6

Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)