Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 25
Search took 0.00 seconds.
Search: Posts Made By: Salepate
Forum: Scripting Help 01-18-2007, 12:20
Replies: 5
Views: 2,458
Posted By Salepate
Re: write to file from amx menu

In your plugin you have to use :
register_clcmd(); To register a command like amx_filewrite <text>
retrieve arg with read_argv(); in the function executed by register_clcmd();
and you finish...
Forum: Scripting Help 01-17-2007, 08:00
Replies: 10
Views: 4,289
Posted By Salepate
Re: Prokreedz help

You should try this :

public func(id) {
new Float _velocity[3];
entity_get_vector(id, EV_VEC_velocity, p_velocity)
if ( p_velocity[2] < 0.0 ) {
client_print(id, print_chat,...
Forum: Scripting Help 01-17-2007, 07:06
Replies: 10
Views: 4,289
Posted By Salepate
Re: Prokreedz help

check if velocity z does not contain a negative value ?
Forum: Scripting Help 01-16-2007, 12:21
Replies: 16
Views: 4,558
Posted By Salepate
Re: Brand new

Two ways :
Using notepad : [File] > [Save as] > namefile.sma

Second way :
You have to enabled file extension ([View] -> [Folder options] -> Don't remember where.. )
and now you can see file...
Forum: Scripting Help 01-16-2007, 02:09
Replies: 8
Views: 1,842
Posted By Salepate
Re: arrg, somebody help plz

What about g_money ? how can you use :

public buy_frostnade(id) {
g_money[id]+=(get_user_frags(id)-lastfrags[id])*5;
}
and

public moneyforfrags() {
g_money(id, money -...
Forum: Scripting Help 01-14-2007, 08:19
Replies: 25
Views: 4,823
Posted By Salepate
Re: scripting help:anti-Flood for my plugin

if you put ADMIN_SLAY you don't need to use cmd_access();
is it wrong ?

besides you wrote
if ( ! cmd_access(id, level, cid, 0) )

isn't 0 supposed to be ADMIN_ALL ? and if it's the case...
Forum: Scripting Help 01-14-2007, 07:22
Replies: 25
Views: 4,823
Posted By Salepate
Re: scripting help:anti-Flood for my plugin

register_clcmd("say /restart","say_restart",ADMIN_SLAY);

Here is it. You should take a look in other plugins source to see how it works, or just watch includes or the wiki.
Forum: Scripting Help 01-13-2007, 19:31
Replies: 10
Views: 3,639
Posted By Salepate
Re: pfn_spawn - NEED HELP

then use cvar_ctf_enabled instead of sv_ctf_mode. :) (and it will work) don't forget to use [small ][/small ] next time
Forum: Scripting Help 01-13-2007, 18:16
Replies: 10
Views: 2,871
Posted By Salepate
Re: Double Array - Manual Defining

If it does not work, then pawn does not support string arrays.
Forum: Scripting Help 01-13-2007, 16:58
Replies: 7
Views: 1,802
Posted By Salepate
Re: Weird bug: script works for 1 person only [help plz]

Perhaps the second person has it : Off and it just handle the rest of the plugin. Did you try without it ?
Forum: Scripting Help 01-13-2007, 16:56
Replies: 10
Views: 3,639
Posted By Salepate
Re: pfn_spawn - NEED HELP

Of Course, you have to create the var

in plugin_init();

if (!cvar_exists("sv_ctf_mode"))
register_cvar("sv_ctf_mode","0");
Forum: Scripting Help 01-13-2007, 06:59
Replies: 10
Views: 3,639
Posted By Salepate
Re: pfn_spawn - NEED HELP

if (get_cvar_num("sv_ctf_mode") == 0)
return PLUGIN_HANDLED

is that what you want ?
Forum: Scripting Help 01-13-2007, 06:28
Replies: 2
Views: 3,309
Posted By Salepate
Re: get_players problem

You wrote : get_players(players,inum,"ae","TERRORIST");

It's "T"
Forum: Scripting Help 01-13-2007, 06:14
Replies: 7
Views: 1,802
Posted By Salepate
Re: Weird bug: script works for 1 person only [help plz]

if (preso[players[i]] == 0) return PLUGIN_HANDLED
it just stops the plugin.
Forum: Scripting Help 01-12-2007, 14:37
Replies: 7
Views: 2,271
Posted By Salepate
Re: MySQL Compile Error [URGENT]

result = dbi_query(dbc,"SELECT * FROM `tablename` WHERE `steamid` LIKE "%s", authid);

is more clean, but I'm starting to think that there is a collision between % (SQL joker term) and %s

By...
Forum: Scripting Help 01-12-2007, 11:55
Replies: 7
Views: 2,271
Posted By Salepate
Re: MySQL Compile Error [URGENT]

This code is nearly working you just forgot an open brace "{" line 103.
Your amxx compiler must be out of date.
Forum: Scripting Help 01-12-2007, 11:50
Replies: 21
Views: 4,705
Posted By Salepate
Re: i'll try to start scripting.. i'm real newbie.. -_-

Well C could be useful to start with main structures like loops or statements, but it's far from being like pawn. And yes pawn is the main language for making amxx plugins. Not sure about this but...
Forum: Scripting Help 01-08-2007, 01:58
Replies: 15
Views: 5,769
Posted By Salepate
Re: Rank plugin.

If you only need to know his frags, you'd better use
get_user_frags(id)
It will free some memory instead of using arrays. you will be sure that it will contain kills.
Forum: Scripting Help 01-07-2007, 17:28
Replies: 5
Views: 1,364
Posted By Salepate
Re: scripting help..

As I said, i've never used neither Prethink nor Posthink, and I don't know it works, So I could have say something wrong.

My mistake
Forum: Scripting Help 01-07-2007, 14:56
Replies: 6
Views: 1,835
Posted By Salepate
Re: A virtual sphere to eject player.

Okay thanks, I ported the code for making effective the explosion against all present players, and it perfectly works.

The last thing which doesn't work is the blast circle effect, and the...
Forum: Scripting Help 01-07-2007, 06:18
Replies: 6
Views: 1,835
Posted By Salepate
Re: A virtual sphere to eject player.

Is there a way to simulate an aim. Because If I'm not aiming the position where the explosion fires, I won't be propelled from the explosion, but from my aim. (if you know what I mean).
Forum: Scripting Help 01-07-2007, 05:22
Replies: 5
Views: 1,364
Posted By Salepate
Re: scripting help..

Flashbang : 25
Smoke Grenade : 9
(amxconst.inc)
If you wanna check it on a duration the better way to do is to use PreThink and PostThink (and honnestly I've never used it atm). But with one of...
Forum: Scripting Help 01-07-2007, 05:16
Replies: 5
Views: 1,364
Posted By Salepate
Re: scripting help..

If you mean :
player is walking Or jumping but in any case with a HE in hand. I guess it would be :

if ( (pev(id,pev_button) & IN_JUMP) || (pev(id,pev_button) & IN_FORWARD) ) {
new...
Forum: Scripting Help 01-07-2007, 04:08
Replies: 6
Views: 1,835
Posted By Salepate
Re: A virtual sphere to eject player.

Hello, it will help me a lot, so many thanks it's exactly what I was searching for.

Good day.
Forum: Scripting Help 01-06-2007, 16:23
Replies: 6
Views: 1,835
Posted By Salepate
A virtual sphere to eject player.

At first, I'm glad to be validated on this forum, I hope I won't act as fool and will respect every rules written, and I'll try to be understood as well I can do.
I lack english a bit but it should...
Showing results 1 to 25 of 25

 
Forum Jump

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


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