Repairing Vehicle Pickup doenst work
#1

Hello,

ive created the repairpickup (ID 3096) and it is being created normally.

I wanted that if faction id 2 & 3 enter it, theyre vehicle will get repaired.

But if i enter it, the car doesnt get repaired / Clientmessage is not coming up.

Can someone look over please?

Код:
	if(pickupid==3096)
	{
	    if(pInfo[playerid][fraktion]==2 && pInfo[playerid][fraktion]==3)
	    {
	        if(IsPlayerInAnyVehicle(playerid))
	        {
	        	RepairVehicle(GetPlayerVehicleID(playerid));
	        	SendClientMessage(playerid, GELB, "Du hast das Fahrzeug repariert.");
			}
		}
		else
		{
			SendClientMessage(playerid, GRAU, "Du hast keine Berechtigungen dein Fahrzeug zu reparieren.");
			return 1;
		}
	}
The code is under Callback "OnPlayerPickUpPickup"
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)