How do I give player a car using /getcar?
#4

Here i made a function..

pawn Код:
stock CreatePlayerVehicle(playerid,vehicleid,Color1,Color2)
{
    new Float: x, Float: y, Float: z, Float: r, vehicle;
    GetPlayerPos(playerid,x,y,z);
    GetPlayerFacingAngle(playerid,r);
    vehicle = CreateVehicle(vehicleid,x,y,z,r,Color1,Color2,300);
    PutPlayerInVehicle(playerid,vehicle,0);
}
1. Make the command
2. Enter the function
3. Input your stuff u want Eg:
CreatePlayerVehicle(playerid,401,0,0)
4. Test it, and tell me if im correct.


Btw add SetPlayerMoney(playerid, -30000); on the command to to minus there money.


-Lorenc
Reply


Messages In This Thread
How do I give player a car using /getcar? - by markjaysonpinoy - 08.07.2010, 12:16
Re: How do I give player a car using /getcar? - by Lorenc_ - 08.07.2010, 12:20
Re: How do I give player a car using /getcar? - by markjaysonpinoy - 08.07.2010, 12:21
Re: How do I give player a car using /getcar? - by Lorenc_ - 08.07.2010, 12:24
Re: How do I give player a car using /getcar? - by markjaysonpinoy - 08.07.2010, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)