30.06.2015, 06:47
'm trying to get this code working will not work if anybody can get this work I would appreciate help
Код:
if((newkeys & KEY_CROUCH) && !(oldkeys & KEY_CROUCH))
{
TrainAirhornSwitch(playerid);
}
TrainAirhornSwitch(playerid)
{
new vid = GetPlayerVehicleID(playerid);
if( vid == 537|| vid == 538)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:X, Float:Y, Float:Z;
GetVehiclePos(vid, X, Y, Z);
if(IsPlayerInRangeOfPoint(vid, 30, X, Y, Z))
{
PlayerPlaySound(vid, 3201, 0, 0, 0);
}
}
}
return 1;
}

