SA-MP Forums Archive
Need some help - 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: Need some help (/showthread.php?tid=187538)



Need some help - ThunD3r - 03.11.2010

Can any good scripter help me ?
I`ve created a prison on the top of a building , it`s all good
But the problem is that i don`t know how to set the spawn place for the jailed people
How to put some weapon spawn points for the guards and also an exit after the time in prison runs out
Can somebody help me ?


Re: Need some help - Sinner - 03.11.2010

Shouldn't be too hard to learn for yourself.
https://sampforum.blast.hk/showthread.php?tid=92

Here's a little head start:
- Create weapon pickups with CreatePickup()
- Give the player a weapon when he enters the pickup with the callback OnPlayerPickupPickup()
- Make a teleport to wherever you want the guards to be with strcmp, dcmd, zcmd, ...
- Make a timer with SetTimerEx() that opens the prison when the timer finishes


Re: Need some help - Sinner - 03.11.2010

EDIT: sorry double post