Rank system newbie question
#6

Код:
public OnPlayerDeath(playerid, killerid, reason)
{

     new string[256];

     if(kills[playerid] == 30) 
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), "%s has been promoted to Baby Killer and now has %d kills!!", string, kills[playerid] );
        SendClientMessageToAll(0x993300AA, string);
        pRank[playerid] = 1;
    }
         else if(kills[playerid] == 100)
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), "%s has been promoted to Shooter and now has %d kills!!", string, kills[playerid]);
        SendClientMessageToAll(0x993300AA, string);
        pRank[playerid] = 2;
    }
         else if(kills[playerid] == 250)
    {
        GetPlayerName(killerid, string, sizeof(string) );
        format(string, sizeof(string), "%s has been promoted to Accurate Shooter and now has %d kills!!", string, kills[playerid]);
        SendClientMessageToAll(0x993300AA, string);
        pRank[playerid] = 3;
    }
	format(string,sizeof(string),"Rank: %s",Ranks[pRank[killerid]]);
	TextDrawSetString(Rank[killerid],string);
}
return 1;
}
Thats what i got... check if it works.
Reply


Messages In This Thread
Rank system newbie question - by BlackWolf120 - 02.12.2010, 19:16
Re: Rank system newbie question - by Hiddos - 02.12.2010, 19:38
Re: Rank system newbie question - by BlackWolf120 - 02.12.2010, 19:46
Re: Rank system newbie question - by BlackWolf120 - 02.12.2010, 20:43
Re: Rank system newbie question - by BlackWolf120 - 02.12.2010, 22:22
Re: Rank system newbie question - by BigAl - 02.12.2010, 22:36
Re: Rank system newbie question - by HotRod - 02.12.2010, 23:51
Re: Rank system newbie question - by Kitten - 03.12.2010, 00:01
Re: Rank system newbie question - by BlackWolf120 - 04.12.2010, 15:25
Re: Rank system newbie question - by BlackWolf120 - 05.12.2010, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)