Jump to content
  • 0

pomoc HELP !


Firess0

Dotaz

10 odpovědí na tuto otázku

Recommended Posts

  • 0

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 by Lukasz
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

príkaz /heal

 

if GetPVarInt( cas) < gettime();

SetPVarInt(cas, gettime()+60*5 //5 sú minúty

 

Bualá :d teraz si to už len uprav aby ti to nehádzalo errory alá použi google :d

Link to comment
Share on other sites

  • 0

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

  • 0

 

Lukasz - myslim ze kdyby si mu to napsal rovou tak to zabere min casu nez ten tvuj diagram :d


if(GetPVarInt("CasPrikazu") > gettime()) return SCM(playerid,-1,"naser si");
SetPVarInt(playerid,"CasPrikazu",gettime()+5*60);
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...