public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) {if(damagedid != INVALID_PLAYER_ID) {if(bodypart == 5 || bodypart == 6) { // Animációba esés }}return 1;}
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) { if(damagedid != INVALID_PLAYER_ID) { if(bodypart == 5 || bodypart == 6) { ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack } } return 1; }
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) { if(damagedid != INVALID_PLAYER_ID) { if(bodypart == 5 || bodypart == 6) { ApplyAnimation(damagedid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack } } return 1; }
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart){ if(issuerid != INVALID_PLAYER_ID ) { if(bodypart == 5 || bodypart == 6) { ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack } } return 1;}
error 025: function heading differs from prototypeerror 021: symbol already defined: \"OnPlayerTakeDamage\"
//====Fejlövés=== LÁB lövés====public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){ if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 24 || weaponid == 31 || weaponid == 30) && bodypart == 9) { SetPlayerHealth(playerid, 0.0); new stringa[MAX_PLAYER_NAME+40]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); //format(stringa, sizeof(stringa), \"[ ! ] Fejbe lőttek\", name); SendClientMessageToAll(0xFFFF00FF,stringa); } return 1;} public OnPlayerTakeDamage(playerid, damagedid, Float:amount, weaponid, bodypart) { if(damagedid != INVALID_PLAYER_ID) { if(bodypart == 5 || bodypart == 6) { ApplyAnimation(damagedid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack } } return 1; }
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart){ if(issuerid != INVALID_PLAYER_ID && (weaponid == 34 || weaponid == 33 || weaponid == 24 || weaponid == 31 || weaponid == 30) && bodypart == 9) { SetPlayerHealth(playerid, 0.0); new stringa[MAX_PLAYER_NAME+40]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); //format(stringa, sizeof(stringa), \"[ ! ] Fejbe lőttek\", name); SendClientMessageToAll(0xFFFF00FF,stringa); } if(issuerid != INVALID_PLAYER_ID && ((bodypart == 5 || bodypart == 6))) { ApplyAnimation(playerid, \"CRACK\", \"crckdeth2\", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack } return 1;}