SA-MP Forums Archive
System objects - 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: System objects (/showthread.php?tid=91520)



System objects - lukpir - 15.08.2009

Hello, now that he is not speaking Englishman ... Simulator using language so as I have a question how to do something such as a system of objects? Going by so I can drop the weapon on the earth and she will lay there (to build a pickup that went out of the game and save after gmx)


Re: System objects - Correlli - 15.08.2009

Eh, i don't know what the hell you're talking about? Weapon drop script? http://forum.sa-mp.com/index.php?topic=24816.0


Re: System objects - XtremeChio - 15.08.2009

Lol lol lol x 10.

Put this above OnGameModeIniti

pawn Код:
new yourpickup
Put this under OnGameModeInit

pawn Код:
yourpickup = CreatePickup (pickupid,id(like1-20), x,y,z);
and put this under OnPlayerPickup

pawn Код:
if (pickupid == yourpickup)
    {
        SetPlayerHealth(playerid, 100);
        // bla bla bla
    }
Pickup ID's: http://weedarr.wikidot.com/pickups
Pickup types: https://sampwiki.blast.hk/wiki/CreatePickup
To get a coordinate, go in samp server and do /save 'name' - You will get X,Y,Z


Re: System objects - lukpir - 15.08.2009


No I mean that it wants to discard weapons command and show it on the ground where it hapten.