Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // enum player info
- pExp,
- pLevel,
- pSkill[8], // 0 = eagle, 1 = shot, 2 = spas, 3 = mp5, 4 = ak, 5 = m4, 6 = rifle, 7 = sniper
- pSkillLevel[8] // 0 = eagle, 1 = shot, 2 = spas, 3 = mp5, 4 = ak, 5 = m4, 6 = rifle, 7 = sniper
- // topo gm
- #define XP 50 // valor multiplicado pelo level
- #define SKILL 8 // valor multiplicado pela skill
- new Spree[MAX_PLAYERS];
- new TempoSpree[MAX_PLAYERS];
- new SpreeNome[7][35] = {
- {"~n~~n~~r~<~y~ Respect Over ~r~>"},
- {"~n~~n~~r~<~y~ Respect Spree ~r~>"},
- {"~n~~n~~r~<~y~ Playa ~r~>"},
- {"~n~~n~~r~<~y~ Homie ~r~>"},
- {"~n~~n~~r~<~y~ Jacker ~r~>"},
- {"~n~~n~~r~<~y~ Criminal ~r~>"},
- {"~n~~n~~r~<~y~ Gangsta ~r~>"}
- };
- new DanoArma[8][5] = {
- {}, // aki vc vai colocar o dano q quer na arma ex: 30,40,50,60,70 ou seja cada 1 numeroo e um skill level
- {}, // pode por assim tb random(30,40),random(40,50),random(50,60),random(60,70) ou seja valor aleatorio
- {},
- {},
- {},
- {},
- {},
- {}
- };
- // algum settimer q roda osplayers a cada 1 segndo
- if(TempoSpree[playerid] > 0)
- {
- TempoSpree[playerid] --;
- if(TempoSpree[playerid] == 0)
- {
- GameTextForPlayer(playerid,SpreeNome[0],2000,3);
- }
- }
- // OnPlayerConnect
- Spree[killerid] = 0;
- TempoSpree[killerid] = 0;
- // OnPlayerDeath
- Spree[killerid] += 1;
- TempoSpree[killerid] = 180; // 3 min em segundos
- if(Spree[killerid] <= sizeof(SpreeNome))
- {
- GameTextForPlayer(playerid,SpreeNome[Spree[killerid]],2000,6);
- }
- if(playerid != INVALID_PLAYER_ID) VerificarArmas(killerid);
- // OnPlayerTakeDamage
- Player[issuerid][pExp] += floatround(amount);
- if(Player[issuerid][pExp] >= Player[issuerid][pLevel] * XP + Player[issuerid][pExp] / 1.5)
- {
- Player[issuerid][pLevel] += 1;
- SendClientMessage(issuerid,-1,"{00FF00}Parabéns você subiu de nivel");
- }
- for(new arma; arma < 8; arma ++)
- {
- if(GetPlayerarma(issuerid) == ArmasSkill[arma])
- {
- amount = Danoarma[arma][Player[issuerid][SkillLevel][arma]];
- }
- }
- // Funcao Fim do GM
- VerificarArmas(playerid)
- {
- for(new arma; arma < 8; arma ++)
- {
- if(GetPlayerarma(issuerid) == ArmasSkill[arma])
- {
- new a = GetPlayerWeapon(playerid);
- if(a == ArmasSkill[arma])
- {
- if(Player[playerid][pSkill][arma] >= 5) return 1;
- Player[playerid][pSkill][arma] += 1;
- if(Player[playerid][pSkill][arma] >= Player[playerid][pSkillLevel][0] * SKILL)
- {
- Player[playerid][pSkill][arma] = 0;
- new str[128];
- format(str,128,"{00FF00}Parabéns sua Skill com a arma %s aumentou um nivel.",WeaponsNames[a]);
- SendClientMessage(playerid,-1,str);
- Player[playerid][pSkillLevel][arma] += 1;
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement