Give experience on roundstart
Hello guys,
I've been trying to give experience to players when the round start. I'm trying to do this with a loop, however the server is crashing upon execute. I'm wondering what's wrong with this: Code:
public RoundStart() { |
Re: Give experience on roundstart
Use get_players
|
Re: Give experience on roundstart
Thank you :)
|
Re: Give experience on roundstart
Actually I tried to do it with this:
Code:
new players[32], num |
Re: Give experience on roundstart
Use player_spawn...
@connoisseur if u dont know shit, shutup. |
Re: Give experience on roundstart
You mean by using:
Code:
RegisterHam(Ham_Spawn,"player","playerSpawn");Code:
register_logevent("RoundStart", 2, "0=World triggered", "1=Round_Start") |
Re: Give experience on roundstart
Code:
for (new i=0; i < 33; i++){------------> Code:
for (new i=1; i <= get_maxplayers(); i++){ |
Re: Give experience on roundstart
@EDUTz
Is this a loop to make it easier on the CPU? If so then this could also explain some of my lag issues and in that case I'm thankful if this may solve it! |
Re: Give experience on roundstart
@Xalus There can be more than 1 solution to every problem and mine would work too. Yours sucks by the way.
Did he say he wants to hook spawn? If you hook spawn, players can exploit reconnect to gain more points. Seems like you're the one who doesn't know shit. Have a nice day. |
Re: Give experience on roundstart
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 09:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.