SA-MP Forums Archive
I need help with some GF thing - 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: I need help with some GF thing (/showthread.php?tid=121914)



I need help with some GF thing - Mark k - 19.01.2010

What's the function, that checks if the player is located at any house?
and secound if FBI/Police/Medic etc. Are on duty and they crash how can i do so that when they login again they stay on duty.


Re: I need help with some GF thing - [HiC]TheKiller - 19.01.2010

http://forum.sa-mp.com/index.php?topic=67900.0


Re: I need help with some GF thing - Rzzr - 19.01.2010

Post this in the GF topic.


Re: I need help with some GF thing - MenaceX^ - 19.01.2010

Quote:
Originally Posted by [ST
∂υтўнвαѕ ]
Post this in the GF topic.
That was [HiC]TheKiller's hint.


Re: I need help with some GF thing - Rzzr - 19.01.2010

I know, he posted in when I was typing. sorry


Re: I need help with some GF thing - Josh! - 19.01.2010

The function is PlayerToPoint, to check if a player is at a house.

For e.g., X: 3921.3921, Y: -1231.9921, Z: 13.2229

pawn Код:
if(PlayerToPoint(distance,playerid,3921.3921,1231.991,13.229))
Search for 'pAdmin' in your script, you will need to create another stat called pDuty possibly, which saves to an .ini file.


Re: I need help with some GF thing - KnooL - 20.01.2010

pawn Код:
for(new h = 0; h <= MAX_HOUSES; h++){
                  if(PlayerToPoint(range, playerid, HouseInfo[h][hExitX], HouseInfo[h][hExitY], HouseInfo[h][hExitZ])){
          ...
          ...
          }
       }
Do you have a variable that says that the user is on duty?