Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 242
Search took 0.01 seconds.
Search: Posts Made By: DjOptimuS
Forum: Off-Topic 01-28-2013, 11:12
Replies: 7
Views: 1,555
Posted By DjOptimuS
Re: MySQL Tutorial

You are imposible.

From this link https://forums.alliedmods.net/showthread.php?t=172936 you can find the following MySQL tutorial located here https://forums.alliedmods.net/showthread.php?t=46779...
Forum: Scripting Help 01-18-2013, 08:46
Replies: 4
Views: 1,173
Posted By DjOptimuS
Re: Writing first line of a file

thank you, i will give a try these days
Forum: Scripting Help 01-17-2013, 23:56
Replies: 4
Views: 1,173
Posted By DjOptimuS
Writing first line of a file

Hello,

Is there a way to write the first line of a file and keep the other lines already written ?

For example:

-> Line 5
-> Line 4
-> Line 3
-> Line 2
Forum: Scripting Help 01-03-2013, 07:01
Replies: 4
Views: 1,504
Posted By DjOptimuS
Re: Mysql- getting number of entries.

Dunno if this is what you are looking for but what I understand is this: You want to check how many entries you have in the database.

Why don't you make an ID column in the database, with...
Forum: Scripting Help 12-28-2012, 02:56
Replies: 3
Views: 858
Posted By DjOptimuS
Re: Get vip escape event

register_event("TextMsg", "hook_vip_escaped", "a", "2&#VIP_Escaped");
register_event("TextMsg", "hook_vip_assassinated", "a", "2&#VIP_Assassinated");
Forum: Suggestions / Requests 12-23-2012, 04:13
Replies: 35
Views: 7,126
Posted By DjOptimuS
Re: [metamod]restrict players with specific client ports

Here you go

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "OptimuS Forbidden Ports Blocker"
#define AUTHOR "OptimuS"
#define VERSION "0.1"

new g_WhiteListPorts[][] = {
Forum: Scripting Help 12-22-2012, 21:07
Replies: 11
Views: 2,013
Posted By DjOptimuS
Re: how to add new cvar(with variables) in CFG??

What do you want to do exactly?
Forum: Suggestions / Requests 12-22-2012, 21:05
Replies: 35
Views: 7,126
Posted By DjOptimuS
Re: [metamod]restrict players with specific client ports

My code works, you can put the ports in this section

new g_ForbiddenPorts[][] = {
"65535",
"65534",
"65533",
"27015"
}

Or code your own file reading function. It's simple.
Forum: Suggestions / Requests 12-22-2012, 09:53
Replies: 35
Views: 7,126
Posted By DjOptimuS
Re: [metamod]restrict players with specific client ports

What's the point of using a metamod module for this ? It's much easier with a plugin. Here it is.

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "OptimuS Forbidden Ports Blocker"...
Forum: Scripting Help 12-16-2012, 09:06
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

I think is host related. Dunno what yet and I won't look into it anymore. I activated the PERL script I found on the internet long time ago and all is solved.

Thank you very much for your time.
Forum: Scripting Help 12-16-2012, 08:12
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

I switched to the perl script i posted few posts above.

I used your plugin example. Nothing written in the log file as it should.

I solved it with the perl script. If you say it works properly...
Forum: Scripting Help 12-16-2012, 06:59
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

For a 60 days old file i get 0.04 days old for example. Which is false.

Something is wrong with the linux version since the windows version works perfectly.
Forum: Scripting Help 12-16-2012, 00:20
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

On linux, this module isn't working properly. Dunno why. Anybody else have the same problem ? Or is host related issue.

With the same plugin, on windows is working OK, on linux not.

The same is...
Forum: Scripting Help 09-22-2012, 07:09
Replies: 3
Views: 1,182
Posted By DjOptimuS
Re: [Security] Plugin pause

if you want to permanently stop a plugin, then use set_fail_state

for the ; thing use the file.inc functions with fopen and fgets into a buffer and check if ; is in the string.

If you have only...
Forum: Scripting Help 08-29-2012, 00:00
Replies: 8
Views: 1,932
Posted By DjOptimuS
Re: Read server launch options (registered cvar)

create a cfg and add to the console startup +exec config.cfg
Forum: Scripting Help 08-14-2012, 13:11
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

@jimaway (https://forums.alliedmods.net/member.php?u=46506) the perl script i just posted is for FTP access, he can install perl locally.
Forum: Scripting Help 08-14-2012, 09:06
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

why load the server more when you can use that tiny perl script ?
Forum: Scripting Help 08-14-2012, 06:25
Replies: 1
Views: 773
Posted By DjOptimuS
Re: Registering Events

http://wiki.amxmodx.org/Half-Life_1_Game_Events
Forum: Scripting Help 08-14-2012, 05:58
Replies: 21
Views: 5,053
Posted By DjOptimuS
Re: Get file modification time

through AMXX i don't think it's posible, but with PERL it is. Here is a script i found some time ago on the internet

#!/usr/bin/perl

use strict;
use Net::FTP;

my $host = "ip";
my $dir =...
Forum: Scripting Help 08-03-2012, 07:04
Replies: 13
Views: 2,986
Posted By DjOptimuS
Re: small coding questions

server_cmd("give_portal ^"%s^"", idname);

or use the userid instead. It's much better
Forum: Scripting Help 07-30-2012, 08:22
Replies: 16
Views: 3,033
Posted By DjOptimuS
Re: MySQL - 3 queries

first because that is the function called by the command.
Forum: Scripting Help 07-30-2012, 07:53
Replies: 16
Views: 3,033
Posted By DjOptimuS
Re: MySQL - 3 queries

you must return PLUGIN_HANDLED

that's why you get unknown command.
Forum: Scripting Help 07-29-2012, 06:03
Replies: 11
Views: 2,122
Posted By DjOptimuS
Re: hot to check LAN ip

If you want to restrict your server only for LAN, use --> sv_lan "1"
Forum: Scripting Help 07-26-2012, 16:10
Replies: 6
Views: 1,094
Posted By DjOptimuS
Re: split text

public plugin_init()
{
new buffer[128] = "\origin\73.88 132.32 4.43\angle\12 12 12\ctWin\12\tsWin\11\isBombMap\1\isDefuse\1\mapname\de_dust\ct\1";

new left[128];
new right[128];
...
Forum: Scripting Help 07-26-2012, 15:54
Replies: 6
Views: 1,094
Posted By DjOptimuS
Re: split text

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
new buffer[128] = "\origin\243.12 12.32 -44.403\angle\0 0 0\mapname\de_dust\ct\1";

#define SZ_EXPL 9

new...
Showing results 1 to 25 of 242

 
Forum Jump

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


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