Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ______________________________________________________________________
- |#####################################################################|
- |## FILTERSCRIPT NAME: Lich su chien dau ##|
- |## By: Danh ##|
- |## Edited Giong Rgame ##|
- |## Contact: Facfebook.com/seji.zoro ##|
- |## Version 2: Add vao gamemodes luon. updated cmd:toglichsu ##|
- |#####################################################################|
- |_____________________________________________________________________|
- */
- // Can giup do lien he facebook: facebook.com/seji.zoro
- // dau tien vao gamemodes
- // Ctril + F "new bool" roi add cai nay o duoi
- new bool:InfoMessage[MAX_PLAYERS] = true;
- // Add tai. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- // neu gamemode nao thieu cai nao trong day thi "playerid, issuerid, Float: amount, weaponid" thi add them vao
- if(InfoMessage[playerid] == true) // version 2
- {
- if(issuerid != INVALID_PLAYER_ID)
- {
- new
- infoString[128],
- weaponName[24],
- victimName[MAX_PLAYER_NAME],
- attackerName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, victimName, sizeof (victimName));
- GetPlayerName(issuerid, attackerName, sizeof (attackerName));
- GetWeaponName(weaponid, weaponName, sizeof (weaponName));
- format(infoString, sizeof(infoString), "[Chien Dau] Ban bi {00bf00}%s{ffffff} su dung {ffff00}%s{ffffff} gay ton that {ff0000}%.02f", attackerName, weaponName, amount);
- SendClientMessage(playerid, 0xFFFFFFFF, infoString);
- }
- }
- // Add tai. public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
- // neu gamemodes nao thieu may cai nay "playerid, damagedid, Float:amount, weaponid" thi add vao
- if(InfoMessage[playerid] == true) // version 2
- {
- new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
- new weaponname[24];
- GetPlayerName(playerid, attacker, sizeof (attacker));
- GetPlayerName(damagedid, victim, sizeof (victim));
- GetWeaponName(weaponid, weaponname, sizeof (weaponname));
- format(string, sizeof(string), "[Chien Dau] Ban da dung {00bf00}%s{ffffff} gay cho {00bf00}%s{ffffff} ton that {ff0000}%.02f", weaponname, victim, amount);
- SendClientMessage(playerid, 0xFFFFFFFF, string);
- return 1;
- }
- // Add tren phan`: if(pMOTD[0]) { ShowPlayerDialog(playerid, PMOTDNOTICE, DIALOG_STYLE_MSGBOX, "
- // cai nay khong quan trong khoi add cung duoc
- SendClientMessageEx(playerid, COLOR_WHITE, "[-] Su dung /toglichsu, de bat hoac tat lich su sat thuong !");
- // comand add cho cmd:makeadmin
- // lich su
- CMD:toglichsu(playerid, params[])
- {
- if(InfoMessage[playerid] == false)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "*** Ban da bat lich su chien dau ( /toglichsu lan nua de tat )***");
- InfoMessage[playerid] = true;
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "*** Ban da tat lich su chien dau ( /toglichsu lan nua de bat )***");
- InfoMessage[playerid] = false;
- }
- return 1;
- }
- /* code by danh */
Add Comment
Please, Sign In to add comment