07.01.2017, 17:34
Quote:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_FIRE)) { if (IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.843)//configure a distancia e as cords. { PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);//troque o id do som, para oque vocк quiser. } } return 1; } |