i need some help here !!
i have this code
and i want that when i ( the host) press the UPARROW button to do this for all the players.Not just for the host !!
Code:
doShow()
{
self endon("disconnect");
anticampoff = self createFontString("hudbig", 0.4);
anticampon = self createFontString("hudbig", 0.4);
self notifyOnPlayerCommand( "UPARROW", "+lookup" );
if( level.gametype != "dm"&&level.gametype != "war"&&level.gametype != "oitc" )
{
wait .5;
anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
wait 1;}
if( level.gametype == "dm" || level.gametype == "war" || level.gametype == "oitc" )
{
wait .5;
anticampon setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
anticampon setText("^1*^7**^1A^7nti^1C^7amp is ^1ON^7**^1*");
wait 1;}
if(self isHost())
{
self waittill( "UPARROW" );
wait .5;
announcement("^1**^7The ^1Anti^7-^1Camp ^7system is ^1OFF^7!!^1**");
level.anticamp = 0;
wait .5;
anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
anticampon destroy();
}
wait 600;
}
Code:
wait .5;
announcement("^1**^7The ^1Anti^7-^1Camp ^7system is ^1OFF^7!!^1**");
level.anticamp = 0;
wait .5;
anticampoff setPoint("TOPRIGHT", "TOPRIGHT", -5, 21);
anticampoff setText("^1*^7**^1A^7nti^1C^7amp is ^1OFF^7**^1*");
anticampon destroy();

