08.07.2010, 12:24
Here i made a function..
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
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);
}
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