07.04.2012, 06:29
(
Last edited by DBan; 07/04/2012 at 06:51 AM.
Reason: Fixing some code
)
You mean wanted levels? SA-MP Wiki is your friend
As for the buttons: Simple search can bring miracles
Example:
Button:
Well that's in my script, just edit it to your liking.
As for the buttons: Simple search can bring miracles
Example:
pawn Code:
GivePlayerMoney(playerid, 200); //Gives the player 200$
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 2); //Gets the player's wanted level then adds to it
pawn Code:
//Definition is from SA-MP wiki
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_LOOK_BEHIND))
{
//your code here
}
return 1;
}
