AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   AS_ Maps Event (https://forums.alliedmods.net/showthread.php?t=343234)

MAJESTIC_SZ 06-30-2023 13:33

AS_ Maps Event
 
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!

bigdaddy424 06-30-2023 20:11

Re: AS_ Maps Event
 
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         }     } }


All times are GMT -4. The time now is 10:22.

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