29.02.2012, 17:38
how to add a tip bot?
public OnGameModeInit() {
SetTimer("TipBot", (60000 * 10), true);
}
forward TipBot();
public TipBot() {
new message = random(6);
switch(message) {
case 0: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 1");
case 1: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 2");
case 2: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 3");
case 3: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 4");
case 4: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 5");
case 5: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 6");
case 6: SendClientMessageToAll(COLOR_WHITE, "Tipbot: message 7");
}
}