AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Super reservation slot(s) (https://forums.alliedmods.net/showthread.php?t=53803)

MPNumB 04-11-2007 09:40

Super reservation slot(s)
 
1 Attachment(s)
I have problems with this plugin. Changed it from amx to amxx + added redirection cvars, but it isn't working at all. Can anyone help me compliting this plugin so it will work. plz.

Zenith77 04-11-2007 12:03

Re: Super reservation slot(s)
 
This should be posted in AMX Mod Migration support (I think) or Suggestions/Requests.

slmclarengt 04-11-2007 12:56

Re: Super reservation slot(s)
 
2 Attachment(s)
Quote:

Originally Posted by MPNumB (Post 463368)
I have problems with this plugin. Changed it from amx to amxx + added redirection cvars, but it isn't working at all. Can anyone help me compliting this plugin so it will work. plz.

I fixed it for you. At some point, someone put "new who" inside an if statement but they didn't realize that it couldn't be used once outside the if statement. I moved the new who to the core function so that now it is declared outside, initialized inside, and all is well

Quote:

Originally Posted by Zenith77 (Post 463427)
This should be posted in AMX Mod Migration support (I think) or Suggestions/Requests.

AMX Mod Migration would be best but heck, if he's programming it, scripting help works too. Plus, it works now (er, in theory :-)), so it shouldn't be an issue.

Slmclarengt

MPNumB 04-11-2007 14:35

Re: Super reservation slot(s)
 
I didn't understand a thing. :D Thx 4 trying, but it dosn't work to. :( Help.

slmclarengt 04-11-2007 23:31

Re: Super reservation slot(s)
 
Ok, since it still doesn't work, either I will take a look at it and port it myself later or someone else can take care of it - please just request that it gets ported. Post the ORIGINAL plugin data in the suggestion/requests forum with a subject: "Port from AMX -> AMXX: Super Reservation Slots"

Sorry I can't do it now, I am in the middle of something.

Slmclarengt

MPNumB 04-12-2007 05:52

Re: Super reservation slot(s)
 
http://forums.alliedmods.net/showthr...831#post463831 I realy don't care how fast it will be complited, i just need it not in 2008. :D I accualy realy want, that you wold help me, cuz i posted this plugin in meny forums, meny offtopics, and noone accept you sayed that it is posible. :D Thx. :)

pRED* 04-12-2007 06:14

Re: Super reservation slot(s)
 
Try changing client_putinserver to client_connect.

If that doesn't help, ill have a proper look tomorrow. Kinda tired now..

Dark Kingdom 04-12-2007 06:17

Re: Super reservation slot(s)
 
client_putinserver is the correct way
PHP Code:

public client_putinserver(id
    { 


MPNumB 04-12-2007 06:39

Re: Super reservation slot(s)
 
Access flags are giving to player at clinet_autorized(), but in steam servers (sv_lan 0) client_autorized() is not working, so if i will use clinet_connect() it will be to fast, to get information of player and amx_default_access accesses will be given. So i am using clinet_putinserver() (it is when player is connected). And problem can't be in that.

slmclarengt 04-12-2007 13:03

Re: Super reservation slot(s)
 
1 Attachment(s)
Quote:

Originally Posted by MPNumB (Post 463834)
http://forums.alliedmods.net/showthr...831#post463831 I realy don't care how fast it will be complited, i just need it not in 2008. :D I accualy realy want, that you wold help me, cuz i posted this plugin in meny forums, meny offtopics, and noone accept you sayed that it is posible. :D Thx. :)

Anything is possible except for perfection :-). I took another look at it but didn't see any major flaws - a few very minor things such as naming a variable the same name as a cvar doesn't go well in my book so I added _var to the end of them. I indented the code, but couldn't find anything that really stood out as a problem. Client_authorized(id) should work on steam servers perfectly fine - if you're worried about STEAM_ID_PENDING, that shouldn't really be an issue but I've never had a problem with my client_authorized(id) in all the plugins I've written/modified/run. I would highly recommend switching client_putinserver(id) to client_authorized(id) as client_authorized(id) means they are connected but their server route can be changed. Client_putinserver(id) is at the final stage when they are about to join teams (not that exact stage but near it) so using it may not work right.

Slmclarengt


All times are GMT -4. The time now is 06:36.

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