Help me please
#1

how do i do this? I want when a player (not law enforcer) when close to this npc they get wanted.. like a certain range.
Reply
#2

Give me the pos of the npc
Reply
#3

AddPlayerClass(285,1578.9711,-1634.1434,13.5624,4.1391,0,0,0,0,0,0);
Reply
#4

(not law enforcer) what you mean??
you have a team law enforcer?
or if the player has cop skin?
Reply
#5

i mean the npc is law enforcer but if someone that is not on the law siide meaning a civilian gets wanted... except cops
Reply
#6

how you recognize law enforcer?? With skin, with a team .... with what?
Reply
#7

fbi, army, cops ....team...and skin?
Reply
#8

any help?
like
pawn Код:
IfPlayerIsInRange
or something?
Reply
#9

You would use IsPlayerInRangeOfPoint - If they are within that range, check which team they are on (depending on your script) and set their wanted level accordingly. An example usage would be:
pawn Код:
if( IsPlayerInRangeOfPoint( playerid, 5.0, 0.00, 0.00, 0.00 ) )
{
   if( GetPlayerTeam( playerid ) != 1 )
   {
      SetPlayerWantedLevel( playerid, GetPlayerWantedLevel( playerid ) + 2 );
   }
}
Reply
#10

i want civilians to get wanted so no team?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)