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.
Ajutor adaugare
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- Doctor whO? <3
- Membru, skill +3
- Posts: 1196
- Joined: 21 Jun 2013, 12:40
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Reputatie: Fost Membru Club eXtreamCS (doua luni)
- Has thanked: 109 times
- Been thanked: 75 times
- Contact:
Last edited by levin 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:)))))
Reason: credeam că greșisei prima oară cu rondom da deja te repeți:)))))
- 1TAP GOD
- Membru, skill +1
- Posts: 152
- Joined: 03 Sep 2018, 00:20
- Detinator Steam: Da
- SteamID: /id/assasinssmdfk
- Fond eXtream: 0
- Has thanked: 16 times
- Been thanked: 16 times
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ă :)
Din cate stiu eu astea sunt nativele de la modul lui zorken
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 ));
Code: Select all
native csgo_set_chest(id,a,value)
native csgo_get_chest(id,value)
Last edited by levin on 31 Dec 2019, 17:21, edited 1 time in total.
Reason: mai încearcă
Reason: mai încearcă
----------------Steam----------------
-----------------------------------------------------------
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
I thought I was faithful, she say I'm a cheater
They thought I was taken, I'm ready to mingle