I need help with some GF thing
#1

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.
Reply
#2

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

Post this in the GF topic.
Reply
#4

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

I know, he posted in when I was typing. sorry
Reply
#6

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.
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: