Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started by: mich1103 on April 05, 2010, 12:28:22 pm
-
Ive do a zombie survival server but zombie ppl just use grenade and kick survivor ass quikly ... can we disable grenade for zombie team ?
-
Set max grenades to 1 and give it to survivors on respawn.
-
ok ive set max grenade to 1
now how i give grenade on spawnt to survivors ?
-
OMG CLICK! (http://devs.soldat.pl/wiki/index.php?title=GiveBonus)
-
A thing like that ?
procedure OnPlayerRespawn(ID: byte);
begin
if team = 1
then begin
GiveBonus(ID, 4: byte);
end;
end;
-
Almost. Try to make you script more viewable by adding spaces and such stuff D:
procedure OnPlayerRespawn(ID: byte);
begin
if GetPlayerStat(ID, 'Team') = 1 then
GiveBonus(ID, 4);
end;
-
Sometimes OnPlayerRespawn can be a pain (since i believe it is called before player actually respawns, making it impossible to give bonus right there and then). If it is still that way, you will need to have an array[1..32] of boolean and set it to true, and ApponIdle, iterate through all of the players, and if its true, give bonus.
-
Whats gonna happen if an enemy stands at the same spot where someone spawns.. will probably glitch out and give the enemy grenades to :P
-
Whats gonna happen if an enemy stands at the same spot where someone spawns.. will probably glitch out and give the enemy grenades to :P
No?
-
Whats gonna happen if an enemy stands at the same spot where someone spawns.. will probably glitch out and give the enemy grenades to :P
No?
Seen the "GiveBonus" attribute glitch out enough times (giving me flamegod instead of someone else). If I stand at the same spot as the person getting the bonus does.
-
never had any problems with givebonus, unlike with spawning kits
-
Can i disable Med kit and nade kit spawning ?
-
never had any problems with givebonus, unlike with spawning kits
Same here.
Can i disable Med kit and nade kit spawning ?
No, but you can KillObject all of them.
-
Can i disable Med kit and nade kit spawning ?
No, but you can KillObject all of them.
or remove all the medikit/nade spawnpoints on the map. Disabling them with scripts... could work too, i guess. Never tried though.
But you still might need to kill off the twin kits that spawn randomly, if you plan to spawn kits yourself
-
How can i procede with KillObjects ???
-
Iterate all objects and if it's medkit - kill it.
-
never had any problems with givebonus, unlike with spawning kits
Just joined the server where it happened (occasionally), asked the admin.. He told me it was one of his first scripts, which spawned an item/bonus @ the players point.. instead of GiveBonus.
My mistake [retard]