Rank System
#3

Create textdraw.

pawn Код:
forward RankUpdate(playerid);
pawn Код:
new playerKills[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
    playerKills[playerid] = 0;
    SetTimerEx("RankUpdate",3000,1,"i",playerid);
    return 1;
}
pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    playerKills[killerid] ++;
    return 1;
}
pawn Код:
public RankUpdate(playerid)
{
    if(playerKills[playerid] >= 20 && playerKills[playerid] =< 40)
    {
        // change textdraw text here
    }
    if(playerKills[playerid] >= 40 && playerKills[playerid] =< 60)
    {
        // change textdraw text here
    }
    return 1;
}
Reply


Messages In This Thread
Rank System - by [ATC]eRaZoR - 29.11.2009, 11:40
Re: Rank System - by miokie - 29.11.2009, 12:19
Re: Rank System - by Luka P. - 29.11.2009, 12:25

Forum Jump:


Users browsing this thread: 1 Guest(s)