SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10/10/2019, 03:14 PM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,212
Reputation: 352
Cool Hyperion Mega Ship Battle

Hello, I would like to present you the Hyperion Mega Ship Battle.
It is a war of two large warships in which between 6 and 42 players can participate (21 per ship)



Video:
https://www.youtube.com/watch?v=Ut7iBj7SRGk

Installation:
PHP Code:
#include <streamer>
#include <colandreas>
#include <3DTryg>
#include <Missile>
#include <progress>

//#define HYPERION_START_TIME 90
//#define HYPERION_VW 0
#include <Hyperion>

public IsAllowedToJoinHyperion(playerid){
    
    return 
1;
}

public 
OnHyperionPlayerDeath(playerid,killerid){
    
SendDeathMessage(killerid,playerid,51);
    return 
1;
}

public 
OnHyperionHelpPresented(playerid){
    
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Hyperion Mega Ship","Control:\nUse your mouse to aim\nUse LMB or Ctrl to shot","OK","");
    return 
1;
}

public 
OnPlayerEnteringHyperion(playerid,teamid){
    
//player teleported to Hyperion Battle
    
return 1;
}

public 
OnPlayerExitHyperion(playerid){
    
//player death on hyperion or battle is finished
    
return 1;
}

public 
OnHyperionStateChange(hyperion_state){
    switch(
hyperion_state){
        case 
HYPERION_STATE_OFF: { //attention this state cannot call when Hyperion battle finish
            
SendClientMessageToAll(0xFFFFFFFF,"Hyperion Battle cannot start due to lack of players.");
        }
        case 
HYPERION_STATE_STARTING: {
            new 
buffer[128];
            
format(buffer,sizeof(buffer),"Hyperion Battle will start in %d seconds.",HYPERION_START_TIME);
            
SendClientMessageToAll(0xFFFFFFFF,buffer);
        }
        case 
HYPERION_STATE_ON: {
            
SendClientMessageToAll(0xFFFFFFFF,"Hyperion Battle has been started.");
        }
    }
    return 
1;
}

public 
OnHyperionBattleFinished(teamid){
    switch(
teamid){
        case 
HYPERION_TEAM_BLUE: {
            
SendClientMessageToAll(0xFFFFFFFF,"Hyperion Battle was finished the blue team wins.");
        }
        case 
HYPERION_TEAM_GREEN: {
            
SendClientMessageToAll(0xFFFFFFFF,"Hyperion Battle was finished the green team wins.");
        }
        case 
HYPERION_TEAM_INTERRUPT: {
            
SendClientMessageToAll(0xFFFFFFFF,"Hyperion Battle was interrupted due to a lack of players.");
        }
    }
    return 
1;
}

public 
OnHyperionBattleResults(playerid,isdead,iswinner){
    switch(
iswinner){
        case 
0: {
            
SendClientMessage(playerid,0xFFFFFFFF,"You team lose the Hyperion Battle.");
        }
        case 
1: {
            
SendClientMessage(playerid,0xFFFFFFFF,"You team win the Hyperion Battle.");
        }
    }
    return 
1;
}

CMD:hyperion(playerid){
    if(!
CallLocalFunction("IsAllowedToJoinHyperion","d",playerid)) return 1;
    if(
Hyperion::IsPlayerSaved(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You are already queued for Hyperion Battle.");
    if(
Hyperion::CountPlayers() >= HYPERION_MAX_QUEUE) return SendClientMessage(playerid,0xFFFFFFFF,"Queue for Hyperion Battle is already full.");
    
Hyperion::SavePlayer(playerid,true);
    
SendClientMessage(playerid,0xFFFFFFFF,"You have signed up for Hyperion Battle Queue.");
    return 
1;
}

CMD:hyperionexit(playerid){
    if(!
Hyperion::IsPlayerSaved(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You are not queued for Hyperion Battle.");
    
Hyperion::SavePlayer(playerid,false);
    
SendClientMessage(playerid,0xFFFFFFFF,"You left the Hyperion Battle queue.");
    return 
1;

Download:
Hyperion.inc
3DTryg.inc Thread
Missile.inc Thread
progress.inc
ColAndreas Plugin

Notice:
Filterscript not exist because filterscripts have limits.
This has been replaced by include, having automatic installation, efficient GameMode/FilterScript.


Non-Registered Users:
Bug Report
AbyssMorgan is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Hyperion Mega Ship Battle (Cooming Soon) AbyssMorgan Screenshots and Videos 7 09/10/2019 11:20 AM
[Map] Reaver VeneXus Ship (Huge Alien Ship) AbyssMorgan Maps 0 06/10/2015 08:59 PM
[Map] Ship Commanding NGC (Big Alien Ship) AbyssMorgan Maps 2 06/10/2015 07:46 PM
[FilterScript] Ship & Dock (with movable ship) Kwarde Filterscripts 38 01/05/2011 06:57 PM
[FilterScript] [FS]||<<Sky Ship - Flying Old Ship>>|| Fre$hKidd Filterscripts 11 07/09/2010 04:43 PM


All times are GMT. The time now is 11:45 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.