Wantedlevel question
#1

Hi All :P, first sorry for my bad english. Iam new with using forum.

I have a question.

I wanna script as follow:
- If a Player is shooting, he becomes wanted level 3.

I used onplayerammochange (YUP) for that, so if he looses ammu, his wanted level will set to 3. Now my problem.

Its working fine but: The player gets wanted level 3 too, when he just buys a weapon and that i dont want.
what i have to change in the script, that i can fix that?
I just started scripting for some weeks but i read all introductions wiki forum etc. But i dont know how to do this. Please help me, so that i can understand. Thanks


part of the script:

public OnPlayerAmmoChange(playerid, oldammo, newammo)
{
if (oldammo >= newammo)
{
SetPlayerWantedLevel(playerid, 3);
}
return 1;
}
Reply


Messages In This Thread
Wantedlevel question - by DJ-CJ89 - 02.09.2009, 14:02
Re: Wantedlevel question - by DJ-CJ89 - 02.09.2009, 17:53
Re: Wantedlevel question - by Yuryfury - 03.09.2009, 02:27
Re: Wantedlevel question - by Calgon - 03.09.2009, 07:55

Forum Jump:


Users browsing this thread: 1 Guest(s)