15.06.2010, 16:48
Quote:
if(strcmp(cmd, "/rocketdm", true) == 0) { if(RocketPlaying == 1) { SendClientMessage(playerid, RED, "The DM Mission is on progress. Wait until it finishes."); return 1; } if(PlayerInGame[playerid] == 1) { SendClientMessage(playerid, RED, "You are already in a minigame."); return 1; } if(RocketOn == 0) { RocketOn = 1; PlayerInGame[playerid] = 1; PlayerInRocket[playerid] = 1; RocketRank = 1; RocketDM = SetTimer("RocketStart", 20000, 0); SendClientMessageToAll(GREEN,"Rocket DM ~g~is to start in 20 seconds.~n~Use ~b~/joindm ~g~to join it."); SendClientMessageToAll(GREEN,"Rocket DM has started, use /rocketdm to join it."); return 1; } else if(RocketOn == 1 && RocketRank <= 15) { PlayerInRocket[playerid] = 1; RocketRank++; SendClientMessage(playerid, GREEN,"You have joined to the DM Mission."); return 1; } else if(RocketOn == 1 && RocketRank == 16) { SendClientMessage(playerid,RED,"The DM Mission is full. Wait for the next round."); } return 1; } |