27.03.2012, 23:09
Hi. I made this for share, in short;
Video:
[ame="http://www.youtube.com/watch?v=B1JaSb9SF8Q"]http://www.youtube.com/watch?v=B1JaSb9SF8Q[/ame]
Installation:
On top
This one for OnPlayerUpdate
And this one for OnPlayerKeyStateChange
* Enjoy
Video:
[ame="http://www.youtube.com/watch?v=B1JaSb9SF8Q"]http://www.youtube.com/watch?v=B1JaSb9SF8Q[/ame]
Installation:
On top
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define KEY_AIM (128)
pawn Код:
if(GetPlayerWeapon(playerid) != 34) return SetPlayerDrunkLevel(playerid,2000);
pawn Код:
if(PRESSED(KEY_AIM))
{
if(loggedin[playerid] == 1) //replace with what you're using
{
if(GetPlayerWeapon(playerid) == 34)
{
SendClientMessage(playerid,-1,"aiming"); //
SetPlayerDrunkLevel(playerid,4999);
return 1;
}
return 1;
}
return 1;
}