SA-MP Forums Archive
PICKUPS - 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)
+--- Thread: PICKUPS (/showthread.php?tid=376181)



PICKUPS - Windrush - 09.09.2012

How To Create Pickups That Create Cars??


Re: PICKUPS - clarencecuzz - 09.09.2012

Example:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == carpickup)
    {
        new Float:X, Float:Y, Float:Z, Float:ang;
        GetPlayerPos(playerid, X, Y, Z);
        GetPlayerFacingAngle(playerid, ang);
        CreateVehicle(vehicletype, X, Y, Z+2, ang, color1, color2, 0);
    }
    return 1;
}
Note: Untested


Re: PICKUPS - xMCx - 09.09.2012

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == cmarker)
    {
        
PutPlayerInVehicle(playerid,vehicleid,seatid);
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"*Car Spawned!"); // Message the player;
    

i think this is it ive never tried, hope it works, good luck