29.11.2009, 12:25
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;
}