All pastes #587150 Raw Edit

Unnamed

public text v1 · immutable
#587150 ·published 2007-06-24 09:37 UTC
rendered paste body
new bool:IsMyTimerRunning;

public OnPlayerConnect(playerid)
{
	if (IsMyTimerRunning == true) {
	    }
	if (IsMyTimerRunning == false) {
	    SetTimer("INFOMsg",81000,1); //1,5min
    	IsMyTimerRunning = true;
	    }
   	return 1;
}

public OnPlayerDisconnect(playerid)
{
    gPlayerName[playerid][0] = 0;
    return 1;
}
public INFOMsg() {
	new randomNum = random(6);
	switch (randomNum) {
	    case 0:
		    SendClientMessageToAll(COLOR_ORANGE, "Text1");
		case 1:
		    SendClientMessageToAll(COLOR_ORANGE, "Text2");
		case 2:
		    SendClientMessageToAll(COLOR_ORANGE, "Text3");
		case 3:
		    SendClientMessageToAll(COLOR_ORANGE, "Text4");
		case 4:
		    SendClientMessageToAll(COLOR_ORANGE, "Text5");
		case 5:
		    SendClientMessageToAll(COLOR_ORANGE, "Text6");
		}
 }