User
Pass
2FA
 
 

MODIFICARE .SMA

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message598
psihopatu' here

[Mentally Stable]



Status: Offline
(since 31-07-2017 17:33)
Joined: 31 Jul 2017
Posts: 1, Topics: 1
Location: Romania

Reputation: 1

Post Posted: 31-07-2017, 02:14:12 | Translate post to: ... (Click for more languages)

Imi modifica si mie cineva urmatorul .sma ? vreau ca vips onnline / si cei care nu-s onnline sa apara in partea stanga colt onnline cu verte si offline cu rosu

Quote:
#include <amxmodx>
#include <amxmisc>

new const
PLUGIN[] = "",
VERSION[] = "1.0",
AUTHOR[] = "scosmin";

new sync

public plugin_init() {
register_plugin(PLUGIN,VERSION,AUTHOR)

set_task(1.0,"show_hud",_,_,_,"b")
sync = CreateHudSyncObj()
}
public show_hud() {
new szName[32],buffer[256],len,count = 0
for(new id = 1; id <= get_maxplayers(); id++)
{
get_user_name(id,szName,charsmax(szName))

if(IsInFile(szName))
{
len +=formatex(buffer[len],charsmax(buffer),"%s^n",szName)
count++
}
}
set_hudmessage(0,255,0,1.0,0.08,0,6.0,1.1)
if(count > 0)
{
ShowSyncHudMsg(0,sync,"Vip's online:^n%s",buffer)
}
else if(count < 1)
{
ShowSyncHudMsg(0,sync,"No Vip's online.")
}
}
stock IsInFile(const name[])
{
new FP,FileData[256],File[126],szName[32]
get_configsdir(File,charsmax(File))
format(File,charsmax(File),"%s/%s",File,"vip_list.ini")

if(!file_exists(File))
{
FP = fopen(File,"w+")
fclose(FP)
}

FP = fopen(File,"rt")
if(FP)
{
while(!feof(FP))
{
fgets(FP,FileData,charsmax(FileData))

if(FileData[0] == ';' || FileData[0] == '/' && FileData[1] == '/')
continue

parse(FileData,szName,charsmax(szName))

if(equal(name,szName))
{
return true
}
}
fclose(FP)
}
return false
}

0 0
  
Back to top
View user's profile Send private message
Capone.

[Founder CS.FREAKZ.RO]



Status: Offline
(since 25-04-2018 17:36)
Joined: 13 Jun 2017
Posts: 316, Topics: 39
Location: Genova

Reputation: 55.5
Votes: 1

   
Post Posted: 31-07-2017, 10:35:14 | Translate post to: ... (Click for more languages)

Nu recomand niciun mesaj in HUD, playerii vor primii non stop eroarea SZ_GetSpace: overflow on Player-CS [6] pana le da crash si timed out, am patit pe serverul meu, rezolvarea a fost sa scot orice tip de mesaj in HUD chiar si cele default din amxx.cfg, si problema dispare. Mai bine lasi /vips e mult mai ok si nu deranjeaza
0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 03-08-2017, 09:19:36 | Translate post to: ... (Click for more languages)

Mi se pare o mare prostie sa pui asa ceva pe server , mai ales si VIPi offline , tu te gandesti ca o sa ai ecranu plin de vipi? -

Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

1 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 29-07-2025, 17:51:20
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password