30.03.2013, 08:31
pawn Код:
if(SpawnedVehicles[playerid] != 0) return DestroyVehicle(SpawnedVehicles[playerid]);
else{
new Float:x, Float:y, Float:z, Float:ROT;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle (playerid,ROT);
SpawnedVehicles[playerid] = CreateVehicle(modelid,x,y,z,ROT,-1,-1,60);
PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
selectingcar[playerid]=0;
}