[Help] No player respawn. -
bennyisme - 05.05.2010
I made a team dm server but i want them to not respawn till one team wins and the game mode restarts.
How can i make it so they don't respawn and spectates another player till gamemode ends and make a text draw to show the players still alive? sorry i am not that good at scripting :O
Re: [Help] No player respawn. -
bennyisme - 06.05.2010
:O anyone can help me
Re: [Help] No player respawn. -
-Rebel Son- - 06.05.2010
idk about the spectate, but you can make a variable
Top of script
Код:
new dead[MAX_PLAYERS];
On player death
And onplayerspawn
Код:
if(dead[playerid] =1) return SendClientMessage(playerid,COLOR,"You are dead!");
Re: [Help] No player respawn. -
bennyisme - 06.05.2010
i get these errors:
error 017: undefined symbol "dead"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Re: [Help] No player respawn. -
-Rebel Son- - 06.05.2010
On what lines?
Re: [Help] No player respawn. -
bennyisme - 06.05.2010
Nevermind the script doesn't work. After i die i just respawn and one correction for you:
Top of script
Code:
new dead[MAX_PLAYERS];
On player Spawn<<<<<<
Code:
dead[playerid] =1;
And Death<<< or it will say when u spawn
Code:
if(dead[playerid] =1) return SendClientMessage(playerid,COLOR,"You are dead!");
switch the spawn with death.
anyone have a better one ? :O
Re: [Help] No player respawn. -
bennyisme - 06.05.2010
Ok so i got the top working but how do i set objective so when one team has no more players or time runs out the game mode will restart.
Re: [Help] No player respawn. -
Valak - 07.05.2010
Quote:
Originally Posted by bennyisme
Ok so i got the top working but how do i set objective so when one team has no more players or time runs out the game mode will restart. 
|
Whenever your condition is met, have it run
Код:
SendRconCommand("gmx");
Re: [Help] No player respawn. -
bennyisme - 07.05.2010
Quote:
Originally Posted by Valak
Quote:
Originally Posted by bennyisme
Ok so i got the top working but how do i set objective so when one team has no more players or time runs out the game mode will restart. 
|
Whenever your condition is met, have it run
Код:
SendRconCommand("gmx");
|
i already did that but i am not sure how to script it to end the game mode.( besides the timer) since it has no respawns.
Re: [Help] No player respawn. -
Valak - 07.05.2010
just have it so that whenever there is an OnPlayerDeath have it add 1 to a variable that will track all deaths. Whenever that number reaches <x> have it run that SendRconCommand. you can tweak the tracker a bit as needed to check for duplicate deaths, teams, etc. Just need to expand on a base concept, that's the key to coding anything. Start small, then build around.