06.12.2011, 11:38
try this
pawn Код:
if(pickupid == CarPickup)
new Float:x,y,z,angle;
DestroyVehicle(g_pVeh[playerid]);
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, angle);
g_pVeh[playerid] = CreateVehicle(560, x, y, z, angle, 0, 0, 5000000);
PutPlayerInVehicle(playerid, g_pVeh[playerid], 0);
SendClientMessage(playerid, -1, "Vehicle created.");
Create3DTextLabel("{1BD6E0}Car Spawn",0x03B8FCFF,2035.0969, 1465.6558, 10.8203, 50,0);
}