public OnPlayerVehicleDamage(playerid,vehicleid, Float:Damage){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { if(BOV[playerid] == 0) { if( Damage > 100.0 && Damage < 220.0) //súlyos { if(GetPlayerVehicleID(i) == vehicleid) { SendClientMessage(playerid,PIROS,\"((Súlyosan megsérültél!))\"); cmd_do(playerid,\"súlyosan megsérült.\"); } } } else { if( Damage > 200.0 && Damage < 260.0) //súlyos { if(GetPlayerVehicleID(i) == vehicleid) { SendClientMessage(playerid,PIROS,\"((Súlyosan megsérültél!))\"); cmd_do(playerid,\"súlyosan megsérült.\"); } } }}return 1;}
if(GetPlayerVehicleID(i) == vehicleid)
SetPlayerHealth(playerid, Float:hp);
new DMGSoundEnabled[MAX_PLAYERS];CMD:dmgsound(playerid, params[]){if(DMGSoundEnabled[playerid]){DMGSoundEnabled[playerid] = 0;SendClientMessage(playerid, -1, \"Sebzés hang kikapcsolva!\");}else{DMGSoundEnabled[playerid] = 1;SendClientMessage(playerid, -1, \"Sebzés hang bekapcsolva!\");}return true;}
if(DMGSoundEnabled[playerid])PlayAudioStreamForPlayer(...);
new DMGSoundEnabled[MAX_PLAYERS];CMD:dmgsound(playerid, params[]){if(DMGSoundEnabled[playerid]){DMGSoundEnabled[playerid] = 0;SendClientMessage(playerid, -1, \"Sebzés hang kikapcsolva!\");}else{DMGSoundEnabled[playerid] = 1;SendClientMessage(playerid, -1, \"Sebzés hang bekapcsolva!\");}return true;} Majd ahol te ezt megoldottad, hogy lejátsszon egy hangot: if(DMGSoundEnabled[playerid])PlayAudioStreamForPlayer(...);