IS POSIBILE TO MAKE THAT IF PLAYER DRIVE PLAIN, THAT HE BE MARKED ON MAP?
#1

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

pawn Код:
for(new i++ <MAX_PLAYERS; i++)
{
if(IsPlayerNationalGuard(i))
{
ShowPlayerMarkerForPlayer(i, playerid, COLOR)
}
}
Reply
#3

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 )))
Reply
#4

On OnPlayerUpdate or on a timer with a playerid param place that.
Reply
#5

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)?
Reply
#6

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

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)