Rank System
#1

Hallo,
ich will ein Rang system, jede 20 kills, soll der rang wechseln.
Es soll ein textdraw sein.
es sollen 10 rдnge geben..
bitte helft mir
SCREENS:
Reply
#2

This is a english speaking part of the forum.
And also, ask in the script request thread.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)