08.10.2011, 16:41
pawn Код:
new rPickup;
public OnGameModeInit()
{
rPickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == rPickup && IsPlayerInAnyVehicle(playerid)) RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}