Confused, extended spawn connect
I'm trying to extend the spawn time, IE someone connects joins a team and can spawn if it's less then X% of time into the round.
Also it's meant to block clcmd jointeam whilst already in a team unless the other team has 0 players or wants to join spectator. Will my vars be permanent in my plugin or only when the plugin is called for example event RoundTime is called so the plugin is executed then handled or will it be working throughout server uptime? Im going to make a listing of players that have been spawned already so they can't die then jointeam again inside the 40% of round time and spawn again, OR reconnect and do it again so I can't have that^ Also im unsure if I should call sort_players which loops get_players every time a new person connects or if I should set a var to count them as this could mean if the server isn't empty, I won't have a true list? Also there is some compile errors if you look below: (P.S there's alot of things I've done that I'm not sure about so if you see anything obvious please could you explain) Script: Code:
Quote:
|
Re: Confused, extended spawn connect
1 error: do not use array names like time, string, new etc... (use something similar such as iTime, g_Time, c_Time...)
2 error: you have left " , " on the end of line (line: 10) replace it with " ; " or delete it... 3 error: Use the floats in plugin init, or after it... 4 error: there is no such thing like RoundTime sorry I've to go :( read carefully your code, and you will see your mistakes :) |
Re: Confused, extended spawn connect
Code:
Quote:
|
Re: Confused, extended spawn connect
get_cvar_num(mp_roundtime)
-> get_cvar_num("mp_roundtime") spawn_time = spawn_time / 40% -> spawn_time = spawn_time / 100 * 40 spawn_time = get_cvar_num(mp_roundtime) * 60 -> round_time = get_cvar_num(mp_roundtime) * 60 |
Re: Confused, extended spawn connect
Ah you replied thank you! quoting worked, though the roundtime event still has them compile errors!
http://wiki.alliedmods.net/Half-Life...ents#RoundTime -> register_event(RoundTime, round_time(&itime)) -> PHP Code:
|
| All times are GMT -4. The time now is 02:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.