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

AS_ Maps Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MAJESTIC_SZ
Senior Member
Join Date: Mar 2020
Location: Portugal
Old 06-30-2023 , 13:33   AS_ Maps Event
Reply With Quote #1

Hello.
Can someone create a small plugin for Assassination mode maps that every round does a sound of my choice and a hud or dhud message saying something like "Player X is now the VIP" ?

Thank you in advance!

Last edited by MAJESTIC_SZ; 06-30-2023 at 13:34.
MAJESTIC_SZ is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 06-30-2023 , 20:11   Re: AS_ Maps Event
Reply With Quote #2

should this work i dunno
Code:
#include <amxmodx> #include <cstrike> public plugin_init(){     new mapname[8]     get_mapname(mapname, charsmax(mapname))     if (contain(mapname, "as_") == -1)         pause("d")         register_event("HLTV", "NewRound", "a", "1=0", "2=0") } public NewRound(){     new players[MAX_PLAYERS], num, id     get_players(players, num, "aceh", "CT")     for (new i = 0; i < num; i++){         id = players[i]         if (cs_get_user_vip(id)){             set_hudmessage(255, 255, 255, .holdtime=6.0)             show_hudmessage(0, "%n is the chosen VIP", id)             client_cmd(0, "spk file.wav")             break         }     } }
__________________
bigdaddy424 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 13:18.


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