Randpm Hit
#4

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)); 
Reply


Messages In This Thread
Randpm Hit - by Hunud - 15.11.2016, 17:37
Re: Randpm Hit - by StrikerZ - 16.11.2016, 01:20
Re: Randpm Hit - by TwinkiDaBoss - 16.11.2016, 01:29
Re: Randpm Hit - by StrikerZ - 16.11.2016, 01:37
Re: Randpm Hit - by TwinkiDaBoss - 16.11.2016, 01:44
Re: Randpm Hit - by Logic_ - 16.11.2016, 07:55

Forum Jump:


Users browsing this thread: 1 Guest(s)