|
View previous topic :: View next topic |
| Author |
Message |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Sun Aug 05, 2007 12:32 pm Post subject: |
|
|
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 |
|
 |
|
 |
Gud New User
Joined: 05 Aug 2007 Posts: 18
|
Posted: Sun Aug 05, 2007 12:44 pm Post subject: |
|
|
Yes, this need is php. script to write steamid, using my ftp server (source server)
there i found the .php script ...
i don't think can create it by my self  |
|
| Back to top |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Sat Aug 11, 2007 4:14 pm Post subject: |
|
|
| Gud wrote: | Yes, this need is php. script to write steamid, using my ftp server (source server)
there i found the .php script ...
i don't think can create it by my self  |
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 |
|
 |
TanaToS New User
Joined: 20 Jun 2007 Posts: 3 Location: Wien
|
Posted: Wed Aug 15, 2007 2:25 am Post subject: |
|
|
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 |
|
 |
flanders New User
Joined: 18 May 2006 Posts: 6
|
Posted: Thu Aug 16, 2007 4:02 am Post subject: |
|
|
i need the previous version, 1.5 VSP.
Have anybody a DL Link ?
thx !  |
|
| Back to top |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Thu Aug 16, 2007 2:40 pm Post subject: |
|
|
| flanders wrote: | i need the previous version, 1.5 VSP.
Have anybody a DL Link ?
thx !  |
its easy only you need to do is change v1.6 to v1.5 in link  _________________ My Plugins:
SourceUtils
Sn4k3 Plugin Template (SPT) -> Make your own plugin. Already include some funcs. |
|
| Back to top |
|
 |
krugonN New User

Joined: 13 Sep 2007 Posts: 2 Location: Rosario, Argentina
|
Posted: Fri Sep 14, 2007 5:12 pm Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Fri Sep 14, 2007 5:24 pm Post subject: |
|
|
| 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 |
|
 |
krugonN New User

Joined: 13 Sep 2007 Posts: 2 Location: Rosario, Argentina
|
Posted: Fri Sep 14, 2007 5:46 pm Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Sat Sep 15, 2007 5:58 pm Post subject: |
|
|
| 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 |
|
 |
Didrole Newbie
Joined: 15 Sep 2007 Posts: 30
|
Posted: Sun Sep 16, 2007 5:59 am Post subject: |
|
|
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 |
|
 |
Gud New User
Joined: 05 Aug 2007 Posts: 18
|
Posted: Tue Sep 18, 2007 5:25 am Post subject: |
|
|
| 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 ...
i don't think can create it by my self  |
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  |
|
| Back to top |
|
 |
dark hunter New User
Joined: 17 Feb 2008 Posts: 2
|
Posted: Sun Feb 17, 2008 12:27 pm Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Mon Feb 18, 2008 8:35 am Post subject: |
|
|
| 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 |
|
 |
dark hunter New User
Joined: 17 Feb 2008 Posts: 2
|
Posted: Tue Feb 19, 2008 4:44 am Post subject: |
|
|
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 |
|
 |
sn4k3 Regular

Joined: 10 Sep 2005 Posts: 178 Location: Portugal
|
Posted: Wed Feb 20, 2008 7:35 am Post subject: |
|
|
| 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 |
|
 |
|