new PDNagroda[] = {
100,
200,
500,
1000,
2000
}
new rankpoints[] = {
100,
200,
500,
1000,
2000
}
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] ){
{
new name[32]
get_user_name(id, name, 31)
ColorChat(0, GREEN, "[NAGRODA]^x01 Gratulacje^x03 %s!^x01 zdobyl^x04 %d^x03 PD^x01 za wbicie^x04 %d^x03 pokeranku!", name, PDNagroda[i], rankpoints[i] );
oldrank[id] = newrank;
pd[id]+=PDNagroda[i]
}
}
else
oldrank[id] = newrank;
}
}
}
Witam.
Mam taki problem,po zdobyciu 100 rankpointsow dostaje nagrode czyli 100 ale jak wbije kolejne wymagane rankpointsy to juz mi nie daje nagrody.
Ktoś coś?


Dodatki SourceMod












