AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   [Funny] Restart Harlem Shake (https://forums.alliedmods.net/showthread.php?t=288671)

EFFx 10-04-2016 18:56

[Funny] Restart Harlem Shake
 
3 Attachment(s)
RESTART HARLEM SHAKE

- Description
This plugin is a funny restart that I made from a idea of an user here that requested this restart and I solve to release him.

OBS: This plugin is for fun

- Commands

- amx_restart_hs - Execute the restart

- Necessary Include
You need to use dhudmessage.inc for compile this plugin, if you dont know whats this, here is the thread link: https://forums.alliedmods.net/showthread.php?t=149210

- Change Log
Spoiler

addons_zz 10-04-2016 19:13

Re: [Funny] Restart Harlem Shake
 
Hi,
  1. Quote:

    Originally Posted by EFFx (Post 2459251)
    OBS: This plugin is for fun

    So, maybe set its category as `Fun Stuff`?

    http://i.imgur.com/ltVVLfz.png


  2. I think am not seeing this. Per rules only AMXX Approvers may add the `.amxx` file:

    http://i.imgur.com/66JEIvO.png


  3. Could you attach the `.sma` file on the main post for easy review access?

EFFx 10-04-2016 20:39

Re: [Funny] Restart Harlem Shake
 
1. Done
2. Done
3. Done

Mistrick 10-06-2016 02:40

Re: [Funny] Restart Harlem Shake
 
You can cache message id and don't get it every time.
Use MSG_BROADCAST for send messages without cycles.
Where is custom sound precache?

EFFx 10-06-2016 17:31

Re: [Funny] Restart Harlem Shake
 
Seriously i forgot the sound precache? LOL, sorry for that. I'll add this when i turn to my default pc.

Napoleon_be 10-06-2016 18:02

Re: [Funny] Restart Harlem Shake
 
like the video though :p

EFFx 10-06-2016 18:26

Re: [Funny] Restart Harlem Shake
 
Quote:

Originally Posted by Mistrick (Post 2459526)
You can cache message id and don't get it every time.

How can i do this? Explain

Quote:

Originally Posted by Mistrick (Post 2459526)
Use MSG_BROADCAST for send messages without cycles.

https://forums.alliedmods.net/showthread.php?t=49828

Quote:

Originally Posted by Hawk552 (Post 426825)
The next parameter, as already talked about, is the id of the player to send this message to. This is only needed when not using MSG_BROADCAST, MSG_ALL or MSG_SPEC, since these messages all target either everyone or a predefined set of people.


Mistrick 10-07-2016 02:00

Re: [Funny] Restart Harlem Shake
 
In your tut written about caching msgid(third code block).
PHP Code:

public ScreenShake()
{
    new 
iPlayers[32],iNum,id
    get_players
(iPlayers,iNum,"ch")
    for(new 
i;iNum;i++)
    {
        
id iPlayers[i]
        
        
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("ScreenShake"),_,id)
        
write_short(215<< 10)
        
write_short(10 << 10)
        
write_short(215<< 10)
        
message_end() 
    }


->
PHP Code:

new g_msgScreenShake;

public 
plugin_init()
{
    
g_msgScreenShake get_user_msgid("ScreenShake");// cache message index
}

public 
ScreenShake()
{
    
message_begin(MSG_BROADCASTg_msgScreenShake)// use saved value without call get_user_msgid()
    
write_short(215<< 10)
    
write_short(10 << 10)
    
write_short(215<< 10)
    
message_end() 


etc.

EFFx 10-07-2016 07:12

Re: [Funny] Restart Harlem Shake
 
Hm, ill try that.

OciXCrom 10-07-2016 20:19

Re: [Funny] Restart Harlem Shake
 
You should rename the video to "How to write in Portuguese in Notepad while trying to load de_dust2 in the background".
I like the plugin, but I think that the effect is way too long. It will get quite annoying to see this in the beginning of every map.


All times are GMT -4. The time now is 07:46.

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