omg....
Hello i made a code that checks if the player has 8 headshots and then ends the game (that is just for easy debug) i will change it later, but i get the error unknown function.
this is in the _events.gsc, as you can see i dont know much about self. and decimals increase in c++.Code:headShot( killId ) { { self.modifiers["headshot"] = true; self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) ); self thread maps\mp\gametypes\_rank::giveRankXP( "headshot" ); self thread giveAdrenaline( "headshot" ); self thread maps\mp\_matchdata::logKillEvent( killId, "headshot" ); self.headshots += 1; self sayall("lala"); } { while(1) if (self.headshots == 8) { level thread maps\mp\gametypes\_gamelogic::forceEnd(); } wait 1; } }
The error will be ini guess.Code:self.headshots += 1;
Last edited by codGmer; 07-31-2011 at 08:08 AM.
This code is so WTF as this:
Code:Hackur(); { { yes } else({) no }) maybe: {}{}{}{}{}{}{} +1-54+16*headshots = OMA } }
btw, the error is not
self.headshots += 1;
you need to edit it soon at possblie dude the code are Fu*^ up so yeah just telling you !
KamenRider for Life !!!
I Ain't Leecher
Yeah that Right Bitches
[img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/inui-takumi.gif[/img] [img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/yuji-kiba.gif[/img] [img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/kaidou.gif[/img] [img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/yuka-osada.gif[/img]
[img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/gmaskot-ex-bl-blade.gif[/img] [img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/gmaskot-ex-bl-gyaren.gif[/img] [img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/Chalice-Ani-Avatar.gif[/img] [img]https://i1101.photobucke*****m/albums/g434/Dave_Day/GIF/gmaskot-ex-kabuto-01.gif[/img] [img]https://i277.photobucke*****m/albums/kk45/Climax_jump_2008/gmaskotexkkickhopnj2.gif[/img]
What? i can't follow you lol, yea i know the code is Fu*^ up.
And then this threadCode:headShot( killId ) { self.modifiers["headshot"] = true; self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) ); self thread maps\mp\gametypes\_rank::giveRankXP( "headshot" ); self thread giveAdrenaline( "headshot" ); self thread maps\mp\_matchdata::logKillEvent( killId, "headshot" ); self.headshots += 1; self thread test(); }
Code:test() { for(;;) { if (self.headshots == 8) { level thread maps\mp\gametypes\_gamelogic::forceEnd(); } wait 1; } }
Last edited by codGmer; 07-31-2011 at 08:54 AM.
I am going to say you a few BIG-> ENORMOUS-> EPIC-> FAILS¡¡¡¡¡
Code:headShot( killId ) { { //? self.modifiers["headshot"] = true; self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) ); self thread maps\mp\gametypes\_rank::giveRankXP( "headshot" ); self thread giveAdrenaline( "headshot" ); self thread maps\mp\_matchdata::logKillEvent( killId, "headshot" ); self.headshots += 1; // you can also do self.headshots ++; is same self sayall("lala"); //for? } //O_O { //wait WTF while(1) //?¿?¿ if (self.headshots == 8) { level thread maps\mp\gametypes\_gamelogic::forceEnd(); } wait 1; } //? }
Not really... I made several mods.I am going to say you a few BIG-> ENORMOUS-> EPIC-> FAILS¡¡¡¡¡
Look at my other post.