SA-MP Forums Archive
pickups in my paint garage dont work[UNSOLVED] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pickups in my paint garage dont work[UNSOLVED] (/showthread.php?tid=141215)



pickups in my paint garage dont work[UNSOLVED] - RobShakur - 12.04.2010

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 !


Re: pickups in my paint garage dont work - russo666 - 12.04.2010

https://sampwiki.blast.hk/wiki/RepairVehicle


Re: pickups in my paint garage dont work - RobShakur - 12.04.2010

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


Re: pickups in my paint garage dont work - Killa_ - 12.04.2010

Use pickup type 14


Re: pickups in my paint garage dont work - russo666 - 12.04.2010

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


Re: pickups in my paint garage dont work - RobShakur - 12.04.2010

can you add the script getplayervehcileid PLS =(


Re: pickups in my paint garage dont work - RobShakur - 12.04.2010

HELP ME =(