IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? - 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: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? (
/showthread.php?tid=112472)
IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
buonggiorno - 08.12.2009
hi to all.
One question, is it posibile to make that if somebody fly with plane, that he be marked on map and only national guard can see his position?
If this is not posibile, is it posibile to make cmd for reprot flying, you know like control tower?
tnx for answer
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
lolumadd - 08.12.2009
pawn Код:
for(new i++ <MAX_PLAYERS; i++)
{
if(IsPlayerNationalGuard(i))
{
ShowPlayerMarkerForPlayer(i, playerid, COLOR)
}
}
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
buonggiorno - 08.12.2009
Quote:
Originally Posted by lolumadd [cod5server.tk
]
pawn Код:
for(new i++ <MAX_PLAYERS; i++) { if(IsPlayerNationalGuard(i)) { ShowPlayerMarkerForPlayer(i, playerid, COLOR) } }
|
hmmm can you give me full code please

)))
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
lolumadd - 08.12.2009
On OnPlayerUpdate or on a timer with a playerid param place that.
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
Finn - 08.12.2009
Quote:
Originally Posted by lolumadd [cod5server.tk
]
On OnPlayerUpdate or on a timer with a playerid param place that.
|
Wouldn't it be smarter to have it in
OnPlayerEnterVehicle (or
OnPlayerStateChange) and
OnPlayerExitVehicle (or
OnPlayerStateChange)?
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
DJDhan - 08.12.2009
Finn's rite

And It would be best if it is put under On player enter vehicle.
Check if it is a plane he is entering and then check if a player is national guard and showmarker to him.
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
Streetplaya - 08.12.2009
Quote:
Originally Posted by DJDhan
Finn's rite 
And It would be best if it is put under On player enter vehicle.
Check if it is a plane he is entering and then check if a player is national guard and showmarker to him.

|
No, you should not use OnPlayerEnterVehicle since it gets called as soon as the player presses enter, regardless of whether they abort it or not. I suggest OnPlayerStateChange
Re: IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP? -
Mike Garber - 08.12.2009
If you want the full code, without learning, without being able to script by yourself later, without being able to do anything without someone else, post in the Script Request thread.
If you just want some help on how you can do it, you've got your answers.
And the answer is: Yes.