02.09.2009, 14:02
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;
}
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;
}