Cerere hud wave

Cauți un plugin și nu găsești? Încearcă-ți norocul în această categorie!

Moderators: Moderatori ajutatori, Moderatori

Post Reply
MadnesOfJuice
Membru, skill 0
Membru, skill 0
Posts: 42
Joined: 25 Dec 2016, 18:13
Detinator Steam: Da
Fond eXtream: 0
Contact:

07 Jan 2019, 15:04

As dori si eu un hud (sa fie sus pe centru) si sa vina in valuri(din stanga in dreapta)
IG-BOOST.org - Instagram Followers Best, Cheap, Reliable
User avatar
NoNameAcs
Membru, skill 0
Membru, skill 0
Posts: 31
Joined: 05 May 2016, 10:19
Detinator Steam: Da
CS Status: Stau , ma uit ce ii pe aici!
Fond eXtream: 0
Location: cstrike/addons/amxmodx
Contact:

11 Jan 2019, 20:16

Code: Select all

#include <sourcemod>
#include <sourcemod>  
#include <cstrike>

public Plugin:myinfo =
{
  name = "hud text",
  author = "coloneL",
  description = "hud TEXT Servers",
  version = "0.3",
  url = "colonel.cf"
};

#pragma semicolon 1

#pragma newdecls required

#define MessageCount    5

// Mesaje care se afișează la fiecare 5 secunde după începerea unei runde 
char sMessages[MessageCount][256] =  
{ 
    "FRAG.1tap.ro",
    "Owner 10 euro",
    "TEXT",
    "TEXT",
    "TEXT"
};

int j = 0;


public void OnPluginStart()
{
    HookEvent("round_start", OnRoundStart);
}

public Action OnRoundStart(Handle event, const char[] name, bool dontBroadcast)
{
    SetHudTextParams(-1.0, 0.1, 5.0, 255, 255, 255, 255, 0, 0.1, 0.1, 0.1); 
    CreateTimer(5.0, ShowHUD, _, TIMER_REPEAT);
    j = 0;
}


public Action ShowHUD(Handle timer)  
{
    if(j >= MessageCount) 
        return Plugin_Stop;
    
    for (int i = 1; i <= MaxClients; i++) 
    {
        if (IsClientInGame(i) && !IsFakeClient(i))  
        {
            ShowHudText(i, 5, sMessages[j]);
        }
    }  
    j++;
    return Plugin_Continue;
}  
Image
Image
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests