i need an example - 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: i need an example (
/showthread.php?tid=522461)
i need an example -
Dziugsas - 27.06.2014
Hello guys!
Can you show an example of kicking everyone from house if their are there.
I have player variable "pInHouse" and im setting it to houseid+1 i thought that i could check it ,but i dont know how it should look like..
So again can you show example?
Re: i need an example -
Jacksta21 - 27.06.2014
You could use a loop
(Click here)
Check if the play is online and check if their in the house equal to houseid...
EDIT: Foreach is more widely used for player looping
Re: i need an example -
Dziugsas - 27.06.2014
Thanks il try.