[HELP] Coding
[B]Hello ,[/B]
[B]I am trying to make a plugin which I can make advertisments in 'HUDMESSAGES'[/B] [B]I did it but what I want to do is , link the '.sma' file to a '.ini' file so I can edit the messages which I want the advertisor show as 'HUDMESSAGE'[/B] [B]My code :[/B] Code:
#include <amxmodx> |
Re: [HELP] Coding
amxx default have it. You can change it on amxx.cfg.
|
Re: [HELP] Coding
[B]And how can make it this way ?[/B]
[B]the code is two lines xD[/B] |
Re: [HELP] Coding
new s_File[128];
get_configsdir(s_File,127); format(s_File,127,"%s/hudmessages.ini",s_File); use fopen / read_file why not just use imessage from amxx default package ? use amx_task plugin and make new messages every few secs |
Re: [HELP] Coding
http://forums.alliedmods.net/showthread.php?p=162423 or just use the amxx built in advertisement messages
if you want to make the plugin yourself, you should start learning the basics of scripting |
Re: [HELP] Coding
[B]Amx tasks -> just show the server name and other things which I don't want[/B]
[B]I want to make my own plugin so I can learn to code a better plugins sooner[/B] [B]I want to know how to link it to .ini configuration file to edit my messages to show in the server as hud messages...[/B] |
Re: [HELP] Coding
Quote:
|
Re: [HELP] Coding
[B]Why can't I use 'bold' to type a message :P ?[/B]
[B]I can just type my message in blabla.ini if I added this ? and it will show up as HUDMESSAGE ?[/B] |
Re: [HELP] Coding
Quote:
1. bold is annoying to read. I feel like you're yelling at me 2. yes, you can pull text from a file and it will print itself as a hud message. Just like EVERY programming language EVER. Things just happen FOR you. 3. Dude, this is not so basic, but you're still missing the fundamentals of scripting. Read tuts, wikis, and documentation of pawn/small/AMXX THEN come back and ask specific, well thought out, and exemplified questions. Otherwise your help you will get from here will be about as sarcastic as mine. |
Re: [HELP] Coding
Quote:
|
| All times are GMT -4. The time now is 08:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.