25.09.2011, 09:02
pawn Код:
enum pinfo
{
ALevel,
VLevel,
};
new Level[MAX_PLAYERS][pinfo];
public OnPlayerUpdate
{
if(GetPlayerScore(playerid) >= 2500)
{
Level[playerid][VLevel] = 1;
}
if(GetPlayerScore(playerid) >= 3500)
{
Level[playerid][VLevel] = 2;
}
if(GetPlayerScore(playerid) >= 4500)
{
Level[playerid][VLevel] = 3;
}
if(GetPlayerScore(playerid) >= 5000)
{
Level[playerid][ALevel] = 1;
}
return 1;
}