Help with this small code
#1

Hello, this is a small code to promote a player to respected player after he reach 6k score, but seems don't work:

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);
}
It's inside a timer.
Reply


Messages In This Thread
Help with this small code - by Face9000 - 15.10.2012, 18:40
Re: Help with this small code - by gtakillerIV - 15.10.2012, 18:43
Re: Help with this small code - by Face9000 - 15.10.2012, 18:44
Re: Help with this small code - by gtakillerIV - 15.10.2012, 18:46
Re: Help with this small code - by RedJohn - 15.10.2012, 18:57
Re: Help with this small code - by lorizz - 15.10.2012, 18:59
Re: Help with this small code - by gtakillerIV - 15.10.2012, 19:04
Re: Help with this small code - by RedJohn - 15.10.2012, 19:10
Re: Help with this small code - by Face9000 - 15.10.2012, 19:20
Re: Help with this small code - by Ghost_Boii - 15.10.2012, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)