Post: A Couple of Code Problems.
10-20-2010, 08:50 PM #1
Cyborg Ninja
PS3 Security FtW !
(adsbygoogle = window.adsbygoogle || []).push({}); Firstly is it possible to auto force the game to end if the UAV is not on.

This is the code im trying to use.

    Uavoffend()
{
level endon ( "game_ended" );
for(i = 10; i > 0; i--)
{
foreach(player in level.players)
{
player iPrintlnBold("^1ERROR: Uav Is Disabled Game Ending");
}
wait .5;
}
exitLevel( false );
}


And then on Init i put this

    if( maps\mp\gametypes\_tweakables::getTweakableValue( "game", "disableuav" ) ){
level thread Uavoffend();

However i dont no If the "game" and "disableuav" Are correct
I searched google and saw "hardpoint" "uav" And changed uav to disable uav however it still didnt work.


Secondly Changing a button sequence for mossy anti join.
Its currently set to frag once however how would i force it to be pressed 3 or 4 times before activating.
    
if(self.buttonPressed[ "+frag" ] == 1){
self.buttonPressed[ "+frag" ] = 0;
if (self isHost()) {
self thread funcAntiJoin();


I know i may sound stupid but ive gone over and over the codes above trying to get them to work.


Any help would be appreciated.

Thanks LukeOutie
(adsbygoogle = window.adsbygoogle || []).push({});
10-20-2010, 09:02 PM #2
XeDa
Banned
use uav jammer...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo