Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(GetPVarInt(ap, "IsInDM") == 1)
- {
- if(LSBeachDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Los Santos Beach has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(GolfDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Golf Course has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(JetpackDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Jetpack Battle has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(HunterDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Hunter Dogfight has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(FarmDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Hell Farm has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(FightDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Fighting Arena has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(GrenadeDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Grenade Battlefield has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(ZomDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Zombotech San Fierro has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- else if(SandDM == 1 && DMHasStarted != 0)
- {
- new winnername[MAX_PLAYER_NAME],string[256+MAX_PLAYER_NAME];
- GetPlayerName(ap, winnername, sizeof(winnername));
- format(string, sizeof(string), "Deathmatch: Sandstorm has ended and %s is the winner!", winnername);
- SendClientMessageToAll(COLOR_GREEN, string);
- }
- SpawnPlayer(ap); // You may use your manuel spawn function here too.
- DMHasStarted = 0;
- DMIsStarting = 0;
- Participants = 0;
- }
Add Comment
Please, Sign In to add comment