ok kösz ezzel kisérleteztem csak nem tudom hova kel beírni Hozzáadva (09.21.2014, 12:05 PM)
---------------------------------------------
if(response == "reset")
{
self.money-=1000;
self.pers["penz"] = -1000;
self.xp-=1000;
self.pers["rank"] = -1000;
}
Írtam egy ilyet de semmi
Hozzáadva (09.21.2014, 6:49 PM)
---------------------------------------------
nem meeeeeeeeeeeeeeeeegy pls help
Hozzáadva (09.23.2014, 3:46 PM)
---------------------------------------------
NAh sikerűlt megoldanom így müködik
penzz()
{
level endon("boot");
setcvar("penzz", "");
while(1)
{
if(getcvar("penzz") != "")
{
if (getcvar("penzz") == "all")
setcvar("penzz", "-1");
movePlayerNum = getcvarint("penzz");
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
player = players;
thisPlayerNum = player getEntityNumber();
if(thisPlayerNum == movePlayerNum || movePlayerNum == -1)
{
player.money -= 1000;
player thread hurthudd(1000);
}
}
setcvar("penzz", "");
}
wait 0.2;
}
}
hurthudd(x)
{
self endon("disconnect");
if(x>0) self.allhurt-=x;
self notify("hton");
self endon("hton");
if(isdefined(self.hud_hurt_text)) self.hud_hurt_text destroy();
self.hud_hurt_text = newClientHudElem(self);
self.hud_hurt_text.horzAlign = "fullscreen";
self.hud_hurt_text.vertAlign = "fullscreen";
self.hud_hurt_text.fontscale = 1;
self.hud_hurt_text.alignX = "center";
self.hud_hurt_text.alignY = "top";
self.hud_hurt_text.x = 317.5;
self.hud_hurt_text.y = 210;
self.hud_hurt_text.label=&"^7+^2&&1$";
self.hud_hurt_text setvalue(self.allhurt);
self.hud_hurt_text.alpha=1;
self.hud_hurt_text fadeovertime(1);
self.hud_hurt_text.alpha=0;
wait 1.1;
self.hud_hurt_text destroy();
self.allhurt=0;
}