Originally Posted by Kuddy
Nгo й lб uma base survival propriamente dita, afinal sу tem uma loja ._.'
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) { if(damagedid != INVALID_PLAYER_ID) { if(weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 || weaponid == 33 || weaponid == 34 || weaponid == 38) { new tmp; tmp=random(48); switch(tmp) { case 0: { ApplyAnimation(damagedid,"PED","DAM_armL_frmBK",4.0,0,0,0,1,1); } case 1: { } case 2: { } case 3: { ApplyAnimation(damagedid,"PED","DAM_armR_frmBK",4.0,0,0,0,1,1); } case 4: { } case 5: { } case 6: { ApplyAnimation(damagedid,"PED","DAM_LegL_frmBK",4.0,0,0,0,1,1); } case 7: { } case 8: { } case 9: { ApplyAnimation(damagedid,"PED","DAM_LegR_frmBK",4.0,0,0,0,1,1); } case 10: { } case 11: { } case 12: { ApplyAnimation(damagedid,"PED","DAM_stomach_frmBK",4.0,0,0,0,1,1); } case 13: { } case 14: { } case 15: { ApplyAnimation(damagedid,"PED","DAM_stomach_frmRT",4.0,0,0,0,1,1); } case 16: { } case 17: { } case 18: { ApplyAnimation(damagedid,"PED","DAM_armL_frmFT",4.0,0,0,0,1,1); } case 19: { } case 20: { } case 21: { ApplyAnimation(damagedid,"PED","DAM_armL_frmLT",4.0,0,0,0,1,1); } case 22: { } case 23: { } case 24: { ApplyAnimation(damagedid,"PED","DAM_LegL_frmFT",4.0,0,0,0,1,1); } case 25: { } case 26: { } case 27: { ApplyAnimation(damagedid,"PED","DAM_LegR_frmFT",4.0,0,0,0,1,1); } case 28: { } case 29: { } case 30: { ApplyAnimation(damagedid,"PED","DAM_LegL_frmLT",4.0,0,0,0,1,1); } case 31: { } case 32: { } case 33: { ApplyAnimation(damagedid,"PED","DAM_LegR_frmRT",4.0,0,0,0,1,1); } case 34: { } case 35: { } case 36: { ApplyAnimation(damagedid,"PED","DAM_stomach_frmFT",4.0,0,0,0,1,1); } case 37: { } case 38: { } case 39: { ApplyAnimation(damagedid,"PED","DAM_armR_frmFT",4.0,0,0,0,1,1); } case 40: { } case 41: { } case 42: { ApplyAnimation(damagedid,"PED","DAM_armR_frmRT",4.0,0,0,0,1,1); } case 43: { } case 44: { } case 45: { ApplyAnimation(damagedid,"PED","DAM_stomach_frmLT",4.0,0,0,0,1,1); } case 46: { } case 47: { } } } new Float:armour; GetPlayerArmour(damagedid,armour); if(armour < 1) { new Float:health; GetPlayerHealth(damagedid, health); SetPlayerHealth(damagedid,health-amount); lasthit[damagedid] = playerid; return 1; }
Pra que esses cases: {} ? Parece ser sу pra ocupar linha.
Aquele Anti Lag nгo tem cara de que foi feito por vocк.
@edit
O sistema de estatнsticas feitas por textdraw nгo estб completamente bugado como eu havia dito, e sim desotimizado:
pawn Код:
public OnPlayerUpdate(playerid) { new string[32]; format(string, sizeof(string), "%08d", GetPlayerMoney(playerid)); TextDrawSetString(Textdraw2, string); new l_string[24]; format(l_string, sizeof(l_string), "My Score : %i", GetPlayerScore(playerid)); TextDrawSetString(Textdraw1, l_string); TextDrawShowForPlayer(playerid, Textdraw1); return 1; }
|