22.03.2014, 21:30
first one is in writing everything in one line, that really sucks to read...
second one:
you are calling the GameTextForPlayer and the SendClientMessage function WITHIN the "format"...
second one:
you are calling the GameTextForPlayer and the SendClientMessage function WITHIN the "format"...
pawn Код:
if(pInfo[killerid][pKills] == 10)
{
pInfo[killerid][pRank] = 1;
format(str,sizeof(str),""chat""OLD_ADMINCMD" [RANK] %s (%d) has been ranked up to rank {21DD00}'1'",PlayerName(killerid),killerid);
GameTextForPlayer(killerid,"~r~Rank up",2500,1);
SendClientMessageToAll(-1,str);
}