SA-MP Forums Archive
Help with PlayerPos - 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: Help with PlayerPos (/showthread.php?tid=129036)



Help with PlayerPos - laserhel50 - 20.02.2010

Hey guys, i have a small Question.
First of all, im working on a little system, you do /dropgun, and an object will be creates on the Players Position.

But HOW, do i make that?


Re: Help with PlayerPos - Torran - 20.02.2010

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/Fwrite
https://sampwiki.blast.hk/wiki/Fread

THE BOTTOM TWO ARE IF YOU WANT THE GUN TO STAY THERE ALWAYS TILL SOMEONE PICKS IT UP,
THAT MEANS WHEN SERVER RESTARTS AND NO1S PICKED IT UP IT WILL STILL BE THERE,

Suggestion:
Make it infront or behind or at side of the player otherwise il suspect that the player will pick it up as soon as they drop


Re: Help with PlayerPos - laserhel50 - 20.02.2010

I actually want it to be at his Feet, how?
Also, i came further and now i wanna make something like /giveweapon [weaponname], but How?
I have all defined, but i cant come any further.


Re: Help with PlayerPos - Torran - 20.02.2010

Get a example code of a roleplay gamemode


Re: Help with PlayerPos - laserhel50 - 20.02.2010

No, i ment as an Admin command.