12.02.2017, 13:46
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?
The code is under Callback "OnPlayerPickUpPickup"
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; } }