15.10.2012, 18:40
Hello, this is a small code to promote a player to respected player after he reach 6k score, but seems don't work:
It's inside a timer.
pawn Код:
if(GetPlayerScore(i) == 6000)
{
new m[128];
SendClientMessage(i,COLOR_PINK,"You have been promoted to respected player! Congrats!");
format(m, sizeof(m), "%s (%d) has been promoted to Respected Player!", nick,i);
SendClientMessageToAll(yellow, m);
PlayerInfo[i][pRespected] = 1;
new mrand =random(15000);
GivePlayerMoney(i,-mrand);
GameTextForPlayer(i, "~w~Promoted ~g~to ~r~Respected ~y~Player ~b~!", 5000, 5);
SetPlayerScore(i, GetPlayerScore(i) + 5);
}