03.07.2012, 16:02
Hi Guys,
i have made an repair vehicle on pickup when i enter to server and i stand with vehicle but it didnt repair
This is the code
Plz Help me To Fix This Problem
i have made an repair vehicle on pickup when i enter to server and i stand with vehicle but it didnt repair
This is the code
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch (pickupid)
{
//-----------------------Vehicle Repair----------------
case 0:
{
RepairVehicle(GetPlayerVehicleID(playerid));
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
SendClientMessage(playerid,orange,"Vehicle Fixed");
return 1;
}