Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Hello Everyone, just wondering if some experienced C# coders could pass a helping hand here; i have some GSC code that was originally designed for the MW2-B3 plugin "alteradmin" (custom dvars that were triggered by the bot) and was wondering if these could be converted over to MW3 so we can use these commands again. :idea:
monitorTeamSwitch(){ self endon ( "disconnect" ); self endon ( "death" ); SetDvarIfUninitialized( "teamswitch", -1); while(1){ if(getdvarint("teamswitch") != -1){ if(self getEntityNumber() == getdvarint("teamswitch")){ if(self.pers["team"] == "allies"){ self.Zombie = 1; self notify("menuresponse", game["menu_team"], "axis"); setDvar("teamswitch", -1); } else if(self.pers["team"] == "axis"){ self notify("menuresponse", game["menu_team"], "allies"); self.Zombie = 0; setDvar("teamswitch", -1); } } } wait 1; } }monitorSuicide() { self endon ( "disconnect" ); SetDvarIfUninitialized( "suicide", -1); while(1) { if(getdvarint("suicide") != -1) { if(self getEntityNumber() == getdvarint("suicide")) { self.antidote = 0; // Patch Antidote infinite Respawn self suicide(); setDvar("suicide", -1); } } wait 1; } }monitorB3Message(){ self endon ( "disconnect" ); self endon ( "death" ); SetDvarIfUninitialized( "b3_message", ""); while(1){ self.b3_message setText(getdvar("b3_message")); wait 0.2; } }doHUD(){ self endon( "disconnect" ); self.b3_message = self createFontString("objective", 1.2); self.b3_message setPoint("RIGHT", "BOTTOMRIGHT", -20, -100); self.b3_message .hideWhenInMenu = true; }monitorSlay(){ self endon ( "disconnect" ); self endon ( "death" ); SetDvarIfUninitialized( "slay", -1); while(1){ if(getdvarint("slay") != -1){ if(self getEntityNumber() == getdvarint("slay")){ setDvar("slay", -1); if (self.pers["team"] != "spectator"){ if(isAlive(self)){ self suicide(); } } } } wait 1; } }Any help would be greatly appreciated; Good Day chaps