pickups in my paint garage dont work[UNSOLVED]
#1

hay dudes
i have sript 2 pickups ...
i see my pickup spoiler but the vehicle dont repair...

look this ?
i have it script wrong ?
OnGameModeInit
Код:
paint = CreatePickup(1000, 23, 3581.930000,-2104.930000,18.909544);
paintII = CreatePickup(1000, 23, 3578.470000,-2104.930000,18.909544);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	  if(pickupid == enter)
	  SetPlayerPos(playerid, 3612.828000, -1665.810000, 3.449247);
	  if(pickupid == loler)
	  SetPlayerPos(playerid, 3615.700000, -1674.800000, 18.068890);
    if(pickupid == paint)
    RepairVehicle(GetPlayerVehicleID(playerid));
    if(pickupid == paintII)
    RepairVehicle(GetPlayerVehicleID(playerid));
	  return 1;
}
pls help me !
Reply
#2

https://sampwiki.blast.hk/wiki/RepairVehicle
Reply
#3

pickup type 1 dont functionaly my vehicle dont repair =(
what are the type for theese function ?
Reply
#4

Use pickup type 14
Reply
#5

Yep i think too that is pickup 14. And i'm not sure but i think you need to use the getplayervehicleid.
Reply
#6

can you add the script getplayervehcileid PLS =(
Reply
#7

HELP ME =(
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)