09.07.2010, 19:31
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
if(GetPlayerWeapon(playerid)==40){
if (PRESSED(KEY_FIRE)){
SendClientMessage(playerid,COLOR_BRIGHTRED,"Beep!");
}
}
}
it's located on OnPlayerKeyStateChange