Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:end(playerid,params[])
- {
- if(ended == true) return SendClientMessage(playerid,MainColors[2],"Bitch, Theres no on-goin base");
- else
- {
- #pragma unused params
- if(!IsPlayerAdmin(playerid) && Variables[playerid][Level] < aLvl[0]){return DenyPlayer(playerid);}
- else if(WatchingBase == true) return SendClientMessage(playerid,MainColors[2], "Bitch, No");
- new string[128];
- PlayerPlaySound(playerid,complete,0.0,0.0,0.0);
- format(string,sizeof(string),"*** Admin \"%s\" has Ended the round",NickName[playerid]);
- SendClientMessageToAll(MainColors[0],string);
- format(string,sizeof(string),"0,1Admin \"%s\" has ended the round",NickName[playerid]);
- IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
- Current = -1;
- nmtimer = false;
- ModeType = NONE;
- TR_DeathPosInt = 0;
- CPtime[0] = CPtime[1];
- SetGlobalTime(gTime);
- GangZoneDestroy(zone);
- GangZoneHideForAll(BlackRadar);
- UpdateMapName();
- ShowNamesAndBlipsForAll();
- UnlockAllVehicles();
- DestroyRoundVehicles();
- ResetAllNames();
- ResetWeaponSets();
- ResetAllColors();
- AutoModeInit();
- DestroyAllPickups();
- DestroyObjects();
- foreach(Player,i)
- {
- TD_HideTeamDmgText(i);
- ResetPlayerWeatherAndTime(i);
- Spectate_Stop(i);
- HasPlayed[i] = false;
- TR_Kills[i] = 0;
- TR_Died[i] = false;
- TR_KillersHP[i] = -1;
- TR_KillDist[i] = 0;
- FinishedMenu[i] = false;
- DisablePlayerCheckpoint(i);
- DisablePlayerRaceCheckpoint(i);
- RemovePlayerMapIcon(i,0);
- RemovePlayerMapIcon(i,1);
- SetPlayerScore(i,TempKills[i]);
- HideAllTextDraws(i);
- if(Playing[i] == true)
- {
- SetCameraBehindPlayer(i);
- ResetPlayerHealth(i);
- Playing[i] = false;
- RemovePlayingName(i);
- TR_Died[i] = false;
- FindPlayerSpawn(i,0);
- SetPlayerWorldBounds(i,20000,-20000,20000,-20000);
- GiveHimHisGuns(i);
- SetPlayerColorEx(i,TeamInactiveColors[gTeam[i]]);
- SetPlayerNewWorld(i);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement