Repairing Vehicle Pickup doenst work
#2

Where do you create the pickup? Show the code please

You have to do something like "RepairPickup = CreatePickup....." and then check for "RepairPickup" under OnPlayerPickUpPickup.

PHP код:
new RepairPickup;
RepairPickup CreatePickup(...);
//Under OnPlayerPickUpPickup
if(pickupid == RepairPickup)
{
    if(
pInfo[playerid][fraktion]==&& pInfo[playerid][fraktion]==3)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
RepairVehicle(GetPlayerVehicleID(playerid));
            
SendClientMessage(playeridGELB"Du hast das Fahrzeug repariert.");
        }
    }
    else
    {
        
SendClientMessage(playeridGRAU"Du hast keine Berechtigungen dein Fahrzeug zu reparieren.");
        return 
1;
    }

Reply


Messages In This Thread
Repairing Vehicle Pickup doenst work - by aw1337 - 12.02.2017, 13:46
Re: Repairing Vehicle Pickup doenst work - by Macronix - 12.02.2017, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)