26.12.2014, 18:16
Hello i want to ask ware i can get horns audio for police and medic , i meen audio that plays when u press h and when u hold h
#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;
}
pawn Код:
|