#include <amxmodx>
#include <pokemod>
#include <colorchat>
new rankexp[] = {
"5000",
"10000",
"15000",
"20000",
"25000"
}
new rankpoints[] = {
25000,
50000,
75000,
100000,
200000
}
#define MAX_PLAYERS 32
new oldrank[MAX_PLAYERS+1];
public poke_player_event(id, event)
{
if( event & SI_SPAWN ){
static i, newrank; newrank = Poke_PlayerRank(id);
for( i=0; i<sizeof rankpoints; i++ ){
if( oldrank[id] < rankpoints[i] && newrank >= rankpoints[i] ){
if(Poke_PlayerXP(id, -1) + Poke_Give_XP(id, -1, rankexp[i])){
new name[32]
get_user_name(id, name, 31)
ColorChat(id, GREEN, "[PokeMod]^x03 Gratulacje^x04 %s ! ^x03 zdobyl darmowego EXPA ^x04 %d ^x01 za wbicie ^x04 %d pokeranku!", name, rankexp[i],rankpoints[i]);
oldrank[id] = newrank;
}
}
else
oldrank[id] = newrank;
}
}
}
Dałby rade ktos poprawic ten plugin zeby dawalo mi odpowiednio 5/10/15/20/25k expa za wbicie danej ilosc pokeranku?Bo teraz caly czas daje mi 53 expa ![]()
Użytkownik ^^DeeD^^ edytował ten post 13.02.2020 23:44


Dodatki SourceMod












