Перейти к содержимому
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.

[solved-help] get multiple dvars' values' with [i] function

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

as title says i want to get multiple dvars and their values at once.

 

example dvars:

player1

player2

player3

player4

player5

.

.

.

player99

 

for(i=0;i<100;i++) { getDvar("player"); } or something?

 

thanks

Featured Replies

Опубликовано:
  • Автор
getDvar("player" + i)

 

setDvarIfUninitialized("max_banned",100);
for ( i = 0; i < getDvarInt("max_banned"); i++ ) 
{
if( isSubStr(self.name, getDvar("nameban" + i)) ) { kick(self GetEntityNumber(),"PLATFORM_STEAM_KICK_CHEAT"); }
}

 

So why im not kicked :/ Is my kick command wrong or where i should call this function from?

onPlayerSpawned or onPlayerConnect? | player thread or self thread

 

im really n00b at modding idk what they do ( self or player whatever... )

 

Edit: i was already tried it with "player"+i but kick message is PLATFORM_STEAM_KICK_CHEAT. that dont work. you must use exe_playerkicked. else players not kicking -.-

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.