Raised This Month: $51 Target: $400
 12% 

[REQ] Map Chooser


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 06-21-2017 , 07:59   [REQ] Map Chooser
Reply With Quote #1

..

Last edited by khashayar007; 06-24-2017 at 11:12.
khashayar007 is offline
kristi
Senior Member
Join Date: Nov 2016
Old 06-21-2017 , 08:18   Re: [REQ] Map Chooser
Reply With Quote #2

Maybe request it on the plugin thread?
kristi is offline
Send a message via Skype™ to kristi
Shinya.
Member
Join Date: Jun 2017
Location: Morocco
Old 06-22-2017 , 12:52   Re: [REQ] Map Chooser
Reply With Quote #3

Quote:
Originally Posted by khashayar007 View Post
Hi. I want this plugin to be like this: When map chooser starts the screen Shakes and players glow.
Please do it. Thanks
Untested:
Attached Files
File Type: sma Get Plugin or Get Source (dmc233.sma - 502 views - 41.9 KB)
File Type: sma Get Plugin or Get Source (1st-code.sma - 488 views - 1.4 KB)

Last edited by Shinya.; 06-22-2017 at 13:04. Reason: oops
Shinya. is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 06-23-2017 , 04:04   Re: [REQ] Map Chooser
Reply With Quote #4

..

Last edited by khashayar007; 06-24-2017 at 11:12.
khashayar007 is offline
Shinya.
Member
Join Date: Jun 2017
Location: Morocco
Old 06-23-2017 , 09:21   Re: [REQ] Map Chooser
Reply With Quote #5

Maybe, that will work; Untested:

PHP Code:
#include <amxmodx> 

#define SHAKE_AMPLITUDE    15.0    // max = 16.0 
#define SHAKE_DURATION    4.0        // max = 16.0 
#define SHAKE_FREQUENCY    100.0    // max = 256.0 

#define PLUGIN "Tras ?" 
#define VERSION "0.0.1" 

new gmsgShake 

public plugin_init() 

    
register_pluginPLUGINVERSION"ConnorMcLeod" 
    
    
gmsgShake get_user_msgid("ScreenShake"
    
    
register_clcmd("say /tras""ClCmd_Tras"
    
register_clcmd("say_team /tras""ClCmd_Tras"


public 
ClCmd_Trasid 
{
    new 
players[33], playersnum;
    new 
players_t[32], players_ct[32], playersnum_tplayersnum_ct;
    
get_players(players_tplayersnum_t"eh""TERRORIST");
    
get_players(players_ctplayersnum_ct"eh""CT");
    
    
copy(playerscharsmax(players), players_t);
    
copy(players[playersnum_t], charsmax(players) - playersnum_tplayers_ct);
    
playersnum playersnum_t playersnum_ct;
    {
        
        new 
shakeAmplitude __FixedUnsigned16(SHAKE_AMPLITUDE1<<12
        new 
shakeDuration  __FixedUnsigned16(SHAKE_DURATION1<<12
        new 
shakeFrequency __FixedUnsigned16(SHAKE_FREQUENCY1<<8
        
        
message_begin(MSG_ONE_UNRELIABLEgmsgShake, .player playersnum)
        {
            
write_shortshakeAmplitude )  // shake amount. 
            
write_shortshakeDuration )   // shake lasts this long. 
            
write_shortshakeFrequency )  // shake noise frequency. 
        

        
message_end() 
    } 
    return 
PLUGIN_HANDLED 


__FixedUnsigned16(Float:flValueiScale

    new 
iOutput
    
    
iOutput floatround(flValue iScale
    
    if ( 
iOutput 
        
iOutput 
    
    
if ( iOutput 0xFFFF 
        
iOutput 0xFFFF 
    
    
return iOutput 

Shinya. is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 06-23-2017 , 09:58   Re: [REQ] Map Chooser
Reply With Quote #6

..

Last edited by khashayar007; 06-24-2017 at 11:12.
khashayar007 is offline
Shinya.
Member
Join Date: Jun 2017
Location: Morocco
Old 06-23-2017 , 10:19   Re: [REQ] Map Chooser
Reply With Quote #7

Quote:
Originally Posted by khashayar007 View Post
When I type /tras it shakes but I want it to automatically shakes when voting starts and when voting is done stop shaking.
Updated Use this:
Attached Files
File Type: sma Get Plugin or Get Source (dmc233.sma - 69 views - 42.0 KB)
Shinya. is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-23-2017 , 10:42   Re: [REQ] Map Chooser
Reply With Quote #8

why you dont use addons zz galilo plugin? its best choose as i think and i was using deroid map chooser and it crached my server many times so i suggest to you to do not use unapproved plugin.
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 06-24-2017 , 06:47   Re: [REQ] Map Chooser
Reply With Quote #9

..

Last edited by khashayar007; 06-24-2017 at 11:12.
khashayar007 is offline
khashayar007
Senior Member
Join Date: Jan 2015
Location: Macedonia
Old 06-24-2017 , 06:48   Re: [REQ] Map Chooser
Reply With Quote #10

..

Last edited by khashayar007; 06-24-2017 at 11:13.
khashayar007 is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 20:51.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode