Ajutor adaugare

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Doctor whO? <3
Membru, skill +2
Membru, skill +2
Posts: 948
Joined: 21 Jun 2013, 11:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 100 times
Been thanked: 25 times
Contact:

30 Dec 2019, 21:00

Salut, sunt detinatorul unui server de csgo mod cs 1.6 si am si eu o mica intrebare ...
Deci pe server am 5 cufere, numerotarea incepe de la 0 la 4 si am un plugin unde as vrea sa pun sa ii dea un cufar rondom din cele 5 , insa nu stiu cum ar trebui sa fac acest lucru.

Nativele :
register_native("get_user_chest", "native_get_chest", 1)
register_native("set_user_chest", "native_set_chest", 1)

M-am gandit la ceva de genu set_user_chest( id, get_user_chest( id ) rondom 0, 4 +1 ); , nu cred ca e bine, dar vreau sa aud si parerea voastra.
Last edited by L E V I N on 30 Dec 2019, 22:41, edited 2 times in total.
Reason: credeam că greșisei prima oară cu rondom da deja te repeți:)))))
User avatar
1TAP GOD
Manager servere
Manager servere
Posts: 155
Joined: 02 Sep 2018, 23:20
Detinator Steam: Da
SteamID: /id/assasinssmdfk
Fond eXtream: 0
Has thanked: 17 times
Been thanked: 14 times

30 Dec 2019, 23:39

Din moment ce ai zis ca ai tu un plugin în care vrei sa adaugi și nu ai lăsat un sma uite ce trebuie sa bagi,nu știu dacă este bine,încearcă :)

Code: Select all

register_cvar("Chesturi","5"); //Scrie cate cutii ai tu pe server 

Code: Select all

new wid = random_num ( 0,get_cvar_num("Chesturi"));

Code: Select all

csgo_set_chest ( id, 1, csgo_get_chest( id, wid ));
Din cate stiu eu astea sunt nativele de la modul lui zorken

Code: Select all

native csgo_set_chest(id,a,value)
native csgo_get_chest(id,value)
Last edited by L E V I N on 31 Dec 2019, 17:21, edited 1 time in total.
Reason: mai încearcă
----------------Steam----------------
-----------------------------------------------------------
Image
And she be actin' funny, probably think a nigga need her
I thought I was faithful, she say I'm a cheater
They thought I was taken, I'm ready to mingle
User avatar
aEEk.#
Membru, skill 0
Membru, skill 0
Posts: 52
Joined: 13 Sep 2012, 21:06
Detinator Steam: Da
CS Status: Open your mind.
SteamID: ale_alexa2389
Location: VSTS
Has thanked: 7 times
Been thanked: 3 times
Contact:

30 Aug 2020, 21:42

new random_chest = random_num(0,4);
set_user_chest(id, random_chest , 1);

ia vezi
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests