Putting Text Draw in Rank SYstem (rep++)
#1

==> I want when Some Player get score higher than 150 than he will get this text draw. I set its position and colours. But where to put it?? I don't know how?? How to Do it?? Can some One Help??

pawn Код:
CMD:rank(playerid,params[])
{
 if(GetPlayerScore(playerid) > 0 )
 {
    SendClientMessage(playerid,GREEN,"Your rank is Rookie!");
 }
 if(GetPlayerScore(playerid) > 150)
 {
    SendClientMessage(playerid,GREEN,"Your rank is Private!");
 }
 if(GetPlayerScore(playerid) > 250)
 {
    SendClientMessage(playerid,GREEN,"Your rank is Corporal!");
 }
 if(GetPlayerScore(playerid) > 350)
 {
    SendClientMessage(playerid,GREEN,"Your rank is Sergeant!");
 }
 if(GetPlayerScore(playerid) > 500)
 {
    SendClientMessage(playerid,GREEN,"Your rank is Captain!");
 }
 if(GetPlayerScore(playerid) > 750)
 {
    SendClientMessage(playerid, GREEN,"Your rank is Bergadier!");
 }
 if(GetPlayerScore(playerid) > 1200)
 {
    SendClientMessage(playerid, GREEN,"Your rank is General!");
 }
 else if(GetPlayerScore(playerid) >= 2000)
 {
    SendClientMessage(playerid,GREEN,"Your rank is Commander!");
 }
 return 1;
}
Reply
#2

Can be placed in OnPlayerUpdate
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Can be placed in OnPlayerUpdate
Not really an good idea gets called every tick of a second,

i rather do,

pawn Код:
forward OnPlayerUpdateEx(playerid);

SetTimer("OnPlayerUpdateEx",2500,1); // OnGameModeInit

public OnPlayerUpdateEx(playerid)
{
    // your stuff onplayerupdate here
    return 1;
}
Reply
#4

no i don't want in time. I want That Every time you get team you got this text draw if your rank is private..
I don't get it. It said Invalid Declaration..
Can you give me sample??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)