It is currently 18 Jan 2019 05:57





Reply to topic  [ 2 posts ] 
 Cerere hud wave 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 25 Dec 2016 18:13
Posts: 42
Detinator Steam: Da
Fond eXtream: 0
As dori si eu un hud (sa fie sus pe centru) si sa vina in valuri(din stanga in dreapta)


07 Jan 2019 15:04
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 05 May 2016 10:19
Posts: 29
Location: cstrike/addons/amxmodx
Detinator Steam: Da
CS Status: Stau , ma uit ce ii pe aici!
Fond eXtream: 0
Code:
#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


11 Jan 2019 20:16
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group