Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Опубликовано:

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 :)

Featured Replies

Опубликовано:

Here you go, tested and working. I shifted the message position a little higher because it was getting in the way of the killstreak thingy.

 

Source is in the archive, would've copied it into the post but its complaining about URLs being present (when there aren't any).

Опубликовано:

master131, next time post just the source, inside a code box. You should know that you can't post binaries...

viewtopic.php?f=40&t=16412

#4

 

I know that you just want to help another member, but keep in mind that there's a reason for those rules, and for obvious reasons, we can't allow exceptions.

Опубликовано:
master131, next time post just the source, inside a code box. You should know that you can't post binaries...

viewtopic.php?f=40&t=16412

#4

 

I know that you just want to help another member, but keep in mind that there's a reason for those rules, and for obvious reasons, we can't allow exceptions.

master131 has already gone through enough troubles, with his account getting deleted

 

 

give him a breaaaaaaaaaaak

Опубликовано:

@Paulofonta I already told you that I can't post the source in a code box because it keeps telling me that I'm not allowed to post URLs when I haven't posted any... :x I even struggled to type this post because it wouldn't let me quote your sentence, complaning about URLs once again. Anyway, I've removed the binary from the archive.

 

Also, thanks Pigophone. 8-)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.