Help me please - 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: Help me please (
/showthread.php?tid=201274)
Help me please -
Abraham2nds - 20.12.2010
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.
Re: Help me please -
akis_tze - 20.12.2010
Give me the pos of the npc
Re: Help me please -
Abraham2nds - 20.12.2010
AddPlayerClass(285,1578.9711,-1634.1434,13.5624,4.1391,0,0,0,0,0,0);
Re: Help me please -
akis_tze - 20.12.2010
(not law enforcer) what you mean??
you have a team law enforcer?
or if the player has cop skin?
Re: Help me please -
Abraham2nds - 20.12.2010
i mean the npc is law enforcer but if someone that is not on the law siide meaning a civilian gets wanted... except cops
Re: Help me please -
akis_tze - 20.12.2010
how you recognize law enforcer?? With skin, with a team .... with what?
Re: Help me please -
Abraham2nds - 20.12.2010
fbi, army, cops ....team...and skin?
Re: Help me please -
Abraham2nds - 22.12.2010
any help?
like
or something?
Re: Help me please -
Grim_ - 22.12.2010
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 );
}
}
Re: Help me please -
Abraham2nds - 22.12.2010
i want civilians to get wanted so no team?