0 Members and 3 Guests are viewing this topic.
I quit making the protect the vip, because I realized that htf is better :p
I started a discussion a while agohttp://forums.soldat.pl/index.php?topic=28593.0I saw the code, seems pretty nice!and just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating it
and just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating it
Quote from: As de Espada on July 31, 2008, 11:37:28 amand just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating itI don't think it really makes a difference, unless you are just that obsessed with OOP.
2 or 3, is it necessary to explain why?
procedure killAllAlive();
var alive: byte;begin for alive := 1 to 32 do begin {...} endend;
if (GetPlayerStat(alive,'Active')) = true then begin if (GetPlayerStat(alive,'Alive')) = true then begin DoDamage(alive,4000); end end
if (GetPlayerStat(alive,'Active')) and (GetPlayerStat(alive,'Alive')) then DoDamage(alive,4000);
This is awesomeness! I think this would be great fun and i'll consider making a server with this on, maybe even mixed with Counter Strike script! If i do i'll give you and MetalWarrior credit, GJ!
forgot to mention that only the vip can take flags