Untitled
unknown
plain_text
a year ago
4.5 kB
3
Indexable
Never
SendHistory(playerid, playerid1 , Float:amount , weapon , Levelgun) { new string[155], string1[155], Namex[MAX_PLAYER_NAME]; GetWeaponName(weapon, Namex, MAX_PLAYER_NAME); if(PlayerInfo[playerid][pCritDamage] == 9) { if(PlayerInfo[playerid][pSkinM4] == 1) format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s (%s) ] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4]), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); else if(PlayerInfo[playerid][pSkinM4Reg] == 1) format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s (%s) ] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4Reg]), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); else if(PlayerInfo[playerid][pSkinM4Blue] == 1) format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s (%s) ] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4Blue]), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); else format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); } else format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ffffff}[{CCCC00}%s %s] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); if(PlayerInfo[playerid][pCritDamage] == 9) { if(PlayerInfo[playerid][pSkinM4] == 1) format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s (%s) ] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4]), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); else if(PlayerInfo[playerid][pSkinM4Reg] == 1) format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s (%s) ] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4Reg]), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); else if(PlayerInfo[playerid][pSkinM4Blue] == 1) format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s (%s) ] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4Blue]), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); else format(string, 155, "[CHIEN DAU] {00FF00}+%.02f HP {ff0000}(Crit) {ffffff}[{CCCC00}%s %s] ({339966}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetPlayerNameEx(playerid1), GetDistanceBetweenPlayers(playerid, playerid1)); } else { if(PlayerInfo[playerid1][pSkinM4] == 1) format(string1, 155, "[CHIEN DAU] {993300}-%.02f HP {ffffff}[{3366CC}%s %s (%s)] ({FF9933}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4]), GetPlayerNameEx(playerid), GetDistanceBetweenPlayers(playerid1, playerid)); else if(PlayerInfo[playerid1][pSkinM4Reg] == 1) format(string1, 155, "[CHIEN DAU] {993300}-%.02f HP {ffffff}[{3366CC}%s %s (%s)] ({FF9933}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4Reg]), GetPlayerNameEx(playerid), GetDistanceBetweenPlayers(playerid1, playerid)); else if(PlayerInfo[playerid1][pSkinM4Blue] == 1) format(string1, 155, "[CHIEN DAU] {993300}-%.02f HP {ffffff}[{3366CC}%s %s (%s)] ({FF9933}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetSkinM4(PlayerInfo[playerid][pSkinM4Blue]), GetPlayerNameEx(playerid), GetDistanceBetweenPlayers(playerid1, playerid)); else format(string1, 155, "[CHIEN DAU] {993300}-%.02f HP {ffffff}[{3366CC}%s %s] ({FF9933}%s{FFFFFF}) (%.02fm)", amount , Namex, GetLevelGun(Levelgun), GetPlayerNameEx(playerid), GetDistanceBetweenPlayers(playerid1, playerid)); } SendClientMessage(playerid, -1, string); SendClientMessage(playerid1, -1, string1); }