07.07.2010, 11:18
pawn Код:
// TOP
new garageoutside, garage, garageoutsiden, garagen;
// OnGameModeInit
garageoutside = CreatePickup (1273, 14, 2196.8542,2412.0093,10.8203);
garage = CreatePickup (1272, 14, 2172.7998,2416.6609,10.8203, 0);
garageoutsiden = CreatePickup (1273, 1, 2196.8542,2412.0093,10.8203);
garagen = CreatePickup (1272, 1, 2172.7998,2416.6609,10.8203, 0);
// OnPlayerPickupPickUp
if(pickupid == garageoutside)
{
SetPlayerPos (playerid, 2165.5825,2416.3362,10.8203);
if(IsPlayerInAnyVehicle(playerid)) {
new pveh = GetPlayerVehicleID(playerid);
SetVehiclePos(pveh, 2165.5825,2416.3362,10.8203);
PutPlayerInVehicle(pveh, 0);
}
}
if(pickupid == garage)
{
SetPlayerPos (playerid, 2219.7261,2414.9763,10.8125);
if(IsPlayerInAnyVehicle(playerid)) {
new pveh = GetPlayerVehicleID(playerid);
SetVehiclePos(pveh, 2219.7261,2414.9763,10.8125);
PutPlayerInVehicle(pveh, 0);
}
}
if(pickupid == garagen)
{
SetPlayerPos (playerid, 2219.7261,2414.9763,10.8125);
}
if(pickupid == garageoutsiden)
{
SetPlayerPos (playerid, 2165.5825,2416.3362,10.8203);
}