Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 25
Search took 0.04 seconds.
Search: Posts Made By: Lukass
Forum: Scripting Help 05-04-2010, 08:52
Replies: 3
Views: 1,101
Posted By Lukass
Re: How to get command arguments?

Thank You.

I don't want to start new topic, so i have one more question here. You know, when we need to save some temporary data about players, most of us probably use something like this:


...
Forum: Scripting Help 05-04-2010, 07:01
Replies: 3
Views: 1,101
Posted By Lukass
How to get command arguments?

Hello good people,

I have "say /add" command, after it i need to put space and any number, like "say /add 80". I need to get that number in my function. How can i do that?
Forum: Scripting Help 07-19-2009, 17:02
Replies: 2
Views: 1,704
Posted By Lukass
Re: Checking if player have C4

thank you arkshine :)
Forum: Scripting Help 07-19-2009, 16:41
Replies: 2
Views: 1,704
Posted By Lukass
Checking if player have C4

Hello,


How can i check if the player have c4 or no ?
Forum: Approved Plugins 06-25-2009, 13:25
Replies: 1,633
Views: 1,088,933
Posted By Lukass
Forum: Approved Plugins 06-25-2009, 12:40
Replies: 1,633
Views: 1,088,933
Posted By Lukass
Re: Galileo 1.1.290 (a feature rich map voting plugin)

Which one of mapcycle.txt and maps.ini does galileo use ?
Forum: Scripting Help 03-25-2009, 04:49
Replies: 9
Views: 1,864
Posted By Lukass
Re: Optimising MySQL: how to cache data?

Does amxmodx admin_sql plugin caching admin's data ?
Forum: Scripting Help 03-23-2009, 17:14
Replies: 9
Views: 1,864
Posted By Lukass
Re: Optimising MySQL: how to cache data?

I have only ~160 usernames and passwords. Is it too large amount of data to cache ?
Forum: Scripting Help 03-23-2009, 16:54
Replies: 9
Views: 1,864
Posted By Lukass
Re: Optimising MySQL: how to cache data?

I know, but i want to call mysql only on plugin_init(), not on each client_connect.
Forum: Scripting Help 03-23-2009, 10:18
Replies: 9
Views: 1,864
Posted By Lukass
Re: Optimising MySQL: how to cache data?

But my table contains some usernames and passwords, and i authentificate them, and i don't know, how to do that from variables aka cache.
Forum: Scripting Help 03-20-2009, 10:47
Replies: 9
Views: 1,864
Posted By Lukass
Optimising MySQL: how to cache data?

Hi everyone,

I have one MySQL database, witch contains some data, that i requesting on every client_connect. Can i cache it to somewhere, and reload cache on every map change? If it is, how can i...
Forum: Scripting Help 02-22-2009, 10:53
Replies: 22
Views: 5,634
Posted By Lukass
Re: How to set user to VIP only in scorebar

Thank you all for help. Now i'm using vato loco [GE-S] (http://forums.alliedmods.net/member.php?u=21510)'s example, and it works okay.
Forum: Scripting Help 02-22-2009, 09:52
Replies: 22
Views: 5,634
Posted By Lukass
Re: How to set user to VIP only in scorebar

And it's working only for CT`s, but i need to this work on both.
Forum: Scripting Help 02-22-2009, 09:43
Replies: 22
Views: 5,634
Posted By Lukass
Re: How to set user to VIP only in scorebar

i tested only

public client_connect(id) {
if(vips[id] == 1) {

fm_set_user_scoreattrib(id,4);

}

}
Forum: Scripting Help 02-22-2009, 09:30
Replies: 22
Views: 5,634
Posted By Lukass
Re: How to set user to VIP only in scorebar

I'm novice in amxx scripting, and i don't wand to set this to everyone. Can you write full code ? I want to set this for players, who vips[id] is equal to "1", like:


if(vips[id] == 1) {

.......
Forum: Scripting Help 02-22-2009, 09:17
Replies: 22
Views: 5,634
Posted By Lukass
Re: How to set user to VIP only in scorebar

public client_connect(id) {

fm_set_user_scoreattrib(id,4);

}


Why it`s not working ?
Forum: Scripting Help 02-22-2009, 07:24
Replies: 22
Views: 5,634
Posted By Lukass
How to set user to VIP only in scorebar

Is it possible to set VIP in scorebar, but he will not be vip, not skin, just scorebar? (sorry for my poor english)
Forum: Unapproved/Old Plugins 01-31-2009, 07:49
Replies: 13
Views: 5,246
Posted By Lukass
Forum: Scripting Help 01-08-2009, 15:37
Replies: 12
Views: 4,372
Posted By Lukass
Re: Preventing SQL from injection

Try to run query:

SELECT * FROM db WHERE select='blah';


It won't work, but if we use this:

SELECT * FROM db WHERE `select`='blah';
Forum: Scripting Help 01-08-2009, 15:09
Replies: 12
Views: 4,372
Posted By Lukass
Re: Preventing SQL from injection

I tried to do this:

replace_all(user_name, 99, "'", "\'")
And it looks to work.

//EDIT:

Thease quotes aren't apostrophes, it`s "back quotes". not " ' ", but " ` ".
Forum: Scripting Help 01-08-2009, 14:56
Replies: 12
Views: 4,372
Posted By Lukass
Re: Preventing SQL from injection

Yes, i know that, but i need user name to work.
Forum: Scripting Help 01-08-2009, 14:47
Replies: 12
Views: 4,372
Posted By Lukass
Preventing SQL from injection

Hi ppl,

I have one MySQL query:

format(CheckQuery, 254, "SELECT `id` FROM `users` WHERE `nick`='%s' AND `password`='%s'", user_name,password)


It contains user's name, and it can be SQL...
Forum: Scripting Help 01-04-2009, 14:48
Replies: 8
Views: 2,510
Posted By Lukass
Re: Is it possible to optimize this code?

Thanks dude, i want exacaly it.
Forum: Scripting Help 01-04-2009, 12:32
Replies: 8
Views: 2,510
Posted By Lukass
Is it possible to optimize this code?

register_clcmd("say /noriuvip","noriu_vip",0,"- Jeigu nori VIP")
register_clcmd("say /viprules","vip_rules",0,"- VIP taisykles")
register_clcmd("say /rules","rules",0,"- Taisykles")

...
Forum: Scripting Help 12-26-2008, 18:20
Replies: 0
Views: 785
Posted By Lukass
How to get random line from maplist file ?

Hi everyone,

How can i get random line from maplist file using amxx? I'm novice in scripting :/
Showing results 1 to 25 of 25

 
Forum Jump

All times are GMT -4. The time now is 23:11.


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