Firess0 1 Odesláno: 15. Říjen, 2015 Share Odesláno: 15. Říjen, 2015 ako mam urobiť aby hráč mohol príkaz heal len raz za 5 min ?? Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 15. Říjen, 2015 Share Odesláno: 15. Říjen, 2015 (upraveno) Pole o velikosti maximalniho poctu hracu na serveru.Pri pouziti /heal kontrolovat, zda je v poli na indexu hracova id ulozen cas mensi nez je aktualni cas. Pokud je, ulozis do prvku pole na index hracova id aktualni cas + 5 minut a provedes pozadovanou akci (nastaveni zivotu). Pokud neni mensi, nenastavujes zivoty a nemanipulujes s polem. Edited 15. Říjen, 2015 by Lukasz 1 Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 15. Říjen, 2015 Author Share Odesláno: 15. Říjen, 2015 nenapísal by si mi to v kode ?? Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 15. Říjen, 2015 Share Odesláno: 15. Říjen, 2015 príkaz /heal if GetPVarInt( cas) < gettime(); SetPVarInt(cas, gettime()+60*5 //5 sú minúty Bualá teraz si to už len uprav aby ti to nehádzalo errory alá použi google Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 16. Říjen, 2015 Author Share Odesláno: 16. Říjen, 2015 ale ja mam errory a nechce mi to najsť a wikipedia mi nejde ako mam tu urobiť aby mohol len 1 za 5 min ??? dcmd_vstunt(playerid, params[]) { #pragma unused params new nasadnut1; new casovanie; if(Vipko[playerid] == 0) return SendClientMessage(playerid, modra, "Nevlastníš VIP. Iba VIP hráč môže použiť tento príkaz."); nasadnut1 = CreateVehicle(560, 100.7583,1644.0110,393.8449, 1, 0, 0, -1); PutPlayerInVehicle(playerid, nasadnut1, 0); SetVehicleHealth(nasadnut1, 5000); SetPlayerPos(playerid, 101.28, 1644.02, 398.41); return 1; } help !! Link to comment Share on other sites More sharing options...
0 Kvostyc 4 Odesláno: 16. Říjen, 2015 Share Odesláno: 16. Říjen, 2015 cez timer Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 ako mam tu urobiť aby mohol len 1 za 5 min ??? ~> Quiter ti to tam už ukazoval jak. Jen si nesmíš číst pouze kód, ale i to okolo... Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 17. Říjen, 2015 Author Share Odesláno: 17. Říjen, 2015 ale nechapem tomu a dava mi error pls napiš mi to upravene a pridaj // komentar aby som to pchopil Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 (upraveno) Hráčův čas představuje prvek výše zmiňovaného pole, kam ukládáš čas. Použij pole a ne PVary. Edited 17. Říjen, 2015 by Lukasz Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 17. Říjen, 2015 Author Share Odesláno: 17. Říjen, 2015 a ako ?? nemohol by si mi dať kod ?? a // popis ? 1 Link to comment Share on other sites More sharing options...
0 ATomas 290 Odesláno: 17. Říjen, 2015 Share Odesláno: 17. Říjen, 2015 Lukasz - myslim ze kdyby si mu to napsal rovou tak to zabere min casu nez ten tvuj diagram if(GetPVarInt("CasPrikazu") > gettime()) return SCM(playerid,-1,"naser si"); SetPVarInt(playerid,"CasPrikazu",gettime()+5*60); Link to comment Share on other sites More sharing options...
Dotaz
Firess0 1
ako mam urobiť aby hráč mohol príkaz heal len raz za 5 min ??
Link to comment
Share on other sites
10 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now