Quote:
Originally Posted by HY
pawn Код:
#define HOLDING(%0) \ ((newkeys & (%0)) == (%0))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (HOLDING(KEY_CTRL_BACK)) { if(IsPlayerInAnyVehicle(playerid)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); PlayerPlaySound(playerid, 3038, X, Y, Z); } } return 1; }
|
okay have checked id i thing this is id when u press h 2 times but if u press too times and then hold its gets different sound , another question how to stop playing sound if i use playerplaysound ?
and that id is not for sirens is just say "Police Car"