SourcePlugins Index SourcePlugins
All Plugins for Valve's Source - Hosted by Mattie
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Board Navigation
Home
Forum
Search

Plugins:
All Plugins
Mattie's Plugins

Web Tools:
VDF Creator

Randomness:
Flash game for CS:S
ThinkGeek PC Mods ThinkGeek Computing

Browse Source Plugins
[View all]
access(1) admin(7) anti-camp(3) anti-cheat(2) chat(2) clan(1) database(1) deathmatch(3) dods(2) international(1) leveling(1) lite(3) management(1) map-management(3) metamod(10) metaplugin(3) mod(3) models(1) perspective(1) players(1) popular(9) punishment(1) respawn(3) rpg(1) scheduling(1) scripting(4) sounds(6) source-code(4) special-effects(1) stats(3) user:McFly(1) war(1) weapons(5) web(1) zombie(1)

Who is Online

In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

Registered Users: None

[ View complete list ]


Most users ever online was 97 on Tue Aug 03, 2010 10:06 pm


Search

Advanced Search

[26/7/07] SourceUtils v1.6
  Description: Utils For All Source Games!
  Tags: scripting database
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    SourcePlugins Index -> Plugins and Addons List
View previous topic :: View next topic  
Author Message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Sun Aug 05, 2007 12:32 pm    Post subject: Reply with quote

Gud wrote:
I have a homepage,


In my homepage i have a pay botten, and then peapels buy V.I.P. via paypal, then they have pay the go back to my site.


http://clanroyal.dk/success.php

okay, i have a mysql database, then they get to this site, www.clanroyal.dk/donate.php , ther i get the steamid, are it possible to send steamid via a command from http://clanroyal.dk/success.php so they be writet to reserve.txt etc


yes, you can make a .php script to write steamid to file using FTP functions
or store data in a MySQL db after read with sourceutils

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger



Gud
New User


Joined: 05 Aug 2007
Posts: 18

PostPosted: Sun Aug 05, 2007 12:44 pm    Post subject: Reply with quote

Yes, this need is php. script to write steamid, using my ftp server (source server)


there i found the .php script Wink...


i don't think can create it by my self Smile
Back to top
View user's profile Send private message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Sat Aug 11, 2007 4:14 pm    Post subject: Reply with quote

Gud wrote:
Yes, this need is php. script to write steamid, using my ftp server (source server)


there i found the .php script Wink...


i don't think can create it by my self Smile


is not hard go to www.php.net and search functions like write

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
TanaToS
New User


Joined: 20 Jun 2007
Posts: 3
Location: Wien

PostPosted: Wed Aug 15, 2007 2:25 am    Post subject: Reply with quote

hey update your su_rand to
Code:
su_rand <start var> <end var> <var> [jumper]

an examep
Code:
su_rand -1000 0 su_temp_rand_var 100

this come can come out
Code:
0 -100 -200 -300 -400 -500 -600 -700 -800 -900 -1000
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
flanders
New User


Joined: 18 May 2006
Posts: 6

PostPosted: Thu Aug 16, 2007 4:02 am    Post subject: Reply with quote

i need the previous version, 1.5 VSP.
Have anybody a DL Link ?

thx ! Smile
Back to top
View user's profile Send private message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Thu Aug 16, 2007 2:40 pm    Post subject: Reply with quote

flanders wrote:
i need the previous version, 1.5 VSP.
Have anybody a DL Link ?

thx ! Smile

its easy only you need to do is change v1.6 to v1.5 in link Very Happy

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
krugonN
New User


Joined: 13 Sep 2007
Posts: 2
Location: Rosario, Argentina

PostPosted: Fri Sep 14, 2007 5:12 pm    Post subject: Reply with quote

Has anyone used the MySQL function in Source Utils? I was trying to make an UPDATE query using a server_var on the WHERE clause but I don't know how to do it. I was trying something like this:

su_MySQL localhost 3306 admin admin "cssid" "UPDATE cssid_main SET playing='0' WHERE currentip=server_var(ipdisconn)"

If I use the previous query I get "SU: MYSQL ERROR: Query failed (FUNCTION cssid.server_var does not exist). So I tried the following one, but it won't work because it checks if currentip=server_var(ipdisconn) (I mean, it doesn't compare two IPs, it compares the current IP with the string "server_var(ipdisconn)": su_MySQL localhost 3306 admin admin "cssid" "UPDATE cssid_main SET playing='0' WHERE currentip='server_var(ipdisconn)'"

If I try the following, it works, but I need to make the query based on the variable ipdisconn:
su_MySQL localhost 3306 admin admin "cssid" "UPDATE cssid_main SET playing='0' WHERE currentip='192.168.1.15'"

Anyway, the question would be: how do I make an UPDATE query using a variable in the WHERE clause?

What would be the right way to do it? Thanks in advance.
Back to top
View user's profile Send private message MSN Messenger
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Fri Sep 14, 2007 5:24 pm    Post subject: Reply with quote

krugonN wrote:
Has anyone used the MySQL function in Source Utils? I was trying to make an UPDATE query using a server_var on the WHERE clause but I don't know how to do it. I was trying something like this:

su_MySQL localhost 3306 admin admin "cssid" "UPDATE cssid_main SET playing='0' WHERE currentip=server_var(ipdisconn)"

If I use the previous query I get "SU: MYSQL ERROR: Query failed (FUNCTION cssid.server_var does not exist). So I tried the following one, but it won't work because it checks if currentip=server_var(ipdisconn) (I mean, it doesn't compare two IPs, it compares the current IP with the string "server_var(ipdisconn)": su_MySQL localhost 3306 admin admin "cssid" "UPDATE cssid_main SET playing='0' WHERE currentip='server_var(ipdisconn)'"

If I try the following, it works, but I need to make the query based on the variable ipdisconn:
su_MySQL localhost 3306 admin admin "cssid" "UPDATE cssid_main SET playing='0' WHERE currentip='192.168.1.15'"

What would be the right way to do it? Thanks in advance.


see that

http://dev.mysql.com/doc/refman/5.0/en/sql-syntax.html
http://forums.mattie.info/cs/forums/viewtopic.php?p=143735&highlight=ssbp#143735

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
krugonN
New User


Joined: 13 Sep 2007
Posts: 2
Location: Rosario, Argentina

PostPosted: Fri Sep 14, 2007 5:46 pm    Post subject: Reply with quote

Yeah, I know the syntax, the problem (I think) is that SU doesn't recognize that server_var(myvar) isn't a common string and that it should replace that with the value of myvar. For example in PHP you can make it like this:

$sql="UPDATE cssid_main SET loggedin='0' WHERE currentip='$ipdisconn'"

I tried using es_format before and store the full query in a variable and then using it in the su_MySQL but it didn't work. I tried this:

es_format queryupdate "UPDATE cssid_main SET loggedin=0 WHERE currentip=%1" server_var(ipdisconn)
su_MySQL localhost 3306 admin admin "cssid" server_var(queryupdate)

and

su_MySQL localhost 3306 admin admin "cssid" "server_var(queryupdate)"

But neither of them worked

PS: I didn't understand what you meant with the last link
PS2: Should I make this post in the mattie's forum thread too? I don't know if more people visit this or that forum
Back to top
View user's profile Send private message MSN Messenger
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Sat Sep 15, 2007 5:58 pm    Post subject: Reply with quote

krugonN wrote:
Yeah, I know the syntax, the problem (I think) is that SU doesn't recognize that server_var(myvar) isn't a common string and that it should replace that with the value of myvar. For example in PHP you can make it like this:

$sql="UPDATE cssid_main SET loggedin='0' WHERE currentip='$ipdisconn'"

I tried using es_format before and store the full query in a variable and then using it in the su_MySQL but it didn't work. I tried this:

es_format queryupdate "UPDATE cssid_main SET loggedin=0 WHERE currentip=%1" server_var(ipdisconn)
su_MySQL localhost 3306 admin admin "cssid" server_var(queryupdate)

and

su_MySQL localhost 3306 admin admin "cssid" "server_var(queryupdate)"

But neither of them worked

PS: I didn't understand what you meant with the last link
PS2: Should I make this post in the mattie's forum thread too? I don't know if more people visit this or that forum


you can choose the forum but i recomend here

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Didrole
Newbie


Joined: 15 Sep 2007
Posts: 30

PostPosted: Sun Sep 16, 2007 5:59 am    Post subject: Reply with quote

try
es su_MySQL localhost 3306 admin admin "cssid" server_var(queryupdate)
&
es su_MySQL localhost 3306 admin admin "cssid" "server_var(queryupdate)"
Back to top
View user's profile Send private message
Gud
New User


Joined: 05 Aug 2007
Posts: 18

PostPosted: Tue Sep 18, 2007 5:25 am    Post subject: Reply with quote

sn4k3 wrote:
Gud wrote:
Yes, this need is php. script to write steamid, using my ftp server (source server)


there i found the .php script Wink...


i don't think can create it by my self Smile


is not hard go to www.php.net and search functions like write



hmm for me is it..

i can't find a command there can send the informations i get from paypal to my server Confused
Back to top
View user's profile Send private message
dark hunter
New User


Joined: 17 Feb 2008
Posts: 2

PostPosted: Sun Feb 17, 2008 12:27 pm    Post subject: Reply with quote

hi, i installed this scipt on my server, but i dont know how to add new people who will can use that bans...
i cant find where sholud i add steam id;/
Back to top
View user's profile Send private message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Mon Feb 18, 2008 8:35 am    Post subject: Reply with quote

dark hunter wrote:
hi, i installed this scipt on my server, but i dont know how to add new people who will can use that bans...
i cant find where sholud i add steam id;/


???? this plugin not containe any ban commands

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
dark hunter
New User


Joined: 17 Feb 2008
Posts: 2

PostPosted: Tue Feb 19, 2008 4:44 am    Post subject: Reply with quote

i thought about it as dog_bans...author gave it on forum mattie's.
But i dont know how to activate users;/
Back to top
View user's profile Send private message
sn4k3
Regular


Joined: 10 Sep 2005
Posts: 178
Location: Portugal

PostPosted: Wed Feb 20, 2008 7:35 am    Post subject: Reply with quote

dark hunter wrote:
i thought about it as dog_bans...author gave it on forum mattie's.
But i dont know how to activate users;/


you have to ask that in Dog Bans topic in mattie forum

_________________
My Plugins:

SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    SourcePlugins Index -> Plugins and Addons List All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB.