Cerere ajutor/tutorial

Categoria unde puteti cere pentru tutoriale.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
N3v3rM1nd
Membru, skill +1
Membru, skill +1
Posts: 310
Joined: 06 Oct 2018, 13:41
Detinator Steam: Da
Fond eXtream: 0
Location: La mine in casa :D
Has thanked: 67 times
Been thanked: 10 times

12 Feb 2021, 17:47

Salut , am si eu nevoie de un mic tutorial .. Cum pot modifica valoarea unui boolean printr-un set_task ?
TransferGo
Shadows Adi
Membru, skill +1
Membru, skill +1
Posts: 194
Joined: 26 Jan 2020, 18:52
Detinator Steam: Da
CS Status: 0x416469
SteamID: privat
Fond eXtream: 0
Has thanked: 4 times
Been thanked: 16 times

12 Feb 2021, 18:31

Code: Select all

/* Sublime AMXX Editor v4.2 */

#include <amxmodx>

new bool:g_bBoolean = true // Initializam o variabila de tip bool: si ii atribuim valoarea "adevarat"

public plugin_init()
{
	set_task(1.0, "task_change_bool")
}

public task_change_bool()
{
	g_bBoolean = false // Schimbam variabila in "fals"
}
Plugin VIP Clasic 1.5 NEW VERSION
CSGO REMAKE Click Completed BETA View Project on GitHub
MVP Of the Round + Sunete Click Completed View Project on GitHub

GLOVES SYSTEM 2%
lexz
Membru, skill +1
Membru, skill +1
Posts: 105
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 5 times
Been thanked: 11 times

19 Feb 2021, 16:20

Code: Select all

/* Sublime AMXX Editor v4.2 */

#include <amxmodx>
#include TASK 3214 // Numar aleatoriu 

new bool:g_bBoolean[MAX_PLAYERS + 1] = true // Initializam o variabila de tip bool: si ii atribuim valoarea "adevarat"

public set_boolean(id)
{
	set_task(1.0, "task_change_bool", id + TASK)
}

public task_change_bool(id)
{
	id -= TASK
	g_bBoolean[id] = false // Schimbam variabila in "fals"
}
in cazul in care ai mai multe taskuri in plugin si vrei ca variabila de tip boolean sa fie pe fiecare player in parte
User avatar
Rainq
Fost moderator
Fost moderator
Posts: 2612
Joined: 21 Jul 2015, 18:50
Detinator Steam: Da
CS Status: Busy
Detinator server CS: zm.thexforce.ro
SteamID: mrainq
Reputatie: Fost super moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni)
Fond eXtream: 0
Location: www.thexforce.ro
Has thanked: 18 times
Been thanked: 40 times
Contact:

19 Feb 2021, 18:16

eu m-am uitat aici,poate va ajuta si pe voi
phpBB [media]
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests