Quote:
Originally Posted by TwinkiDaBoss
Code untested.
pawn Код:
new bool:bounty[MAX_PLAYERS] = false;
#define TIME_SET (60*1000)*5 //change 5 to how many minutes u way
SetTimer("randomBounty",TIME_SET,true); //add under OnGameModeInit()
public randomBounty() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(bounty[i] == false) { bounty[i] = true; new string[64]; format(string,sizeof(string),"Bounty is now on %s",GetName(playerid)); SendClientMessageToAll(COLOR_RED,string); break; } } } }
|
Shouldn't this be
PHP код:
format(string,sizeof(string),"Bounty is now on %s",GetName(i));