Ce face set_task? [Amxx]

Tutoriale scripting, cod si portiuni de cod.

Moderators: Moderatori ajutatori, Moderatori

Lux0R^
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1225
Joined: 13 Jul 2013, 15:31
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Has thanked: 15 times
Been thanked: 9 times

04 Aug 2016, 00:39

*Or!g!naL* wrote:am un meniu care contine hp si vreau ca sa poti cumapra hp odata la 10 sec, aceasta restrictie doar la casa cu hp . Cum ar trebuie sa arata linia, o pun eu in sursa
nu se poate intr-o linie... trebuie sa postezi pluginul (daca nu e lung) sau o portiune (daca e lung) si dupa te ajut eu sa intelegi..
Pauza pana in iulie... licenta ^^

Fara pm-uri pentru pluginuri de zm/furien + tot ce tine de vip.

Codul Scripterului: scripting/codul-scripterului-t362300.html#p2754224
IG-BOOST.org - Instagram Followers Best, Cheap, Reliable
User avatar
LondoN eXtream
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2889
Joined: 10 Oct 2014, 05:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Scripter eXtreamCS
Moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 2 times
Been thanked: 2 times

04 Aug 2016, 13:16

1. Creeam un nou boll.
Cod | Afiseaza codul
new bool:HP[33];
2. In handler adaugam
COD | Afiseaza codul
if(HP[id])
{ 
           client_print(id, print_chat, "[HP] Odata la 10 secunde!");
           return PLUGIN_HANDLED;
}

HP[id] = true;
set_user_health(id, get_user_health(id) + 50);
set_task(Float:Timp, "off_hp", id);
off_hp | Afiseaza codul
public off_hp(id)             HP[id] = false;
User avatar
Fuffy
Membru, skill +1
Membru, skill +1
Posts: 299
Joined: 07 Jan 2016, 08:34
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

11 Sep 2016, 08:03

londonm folosestete get_gametime e mult mai usor.
AMXX Blue e acum doar pe github.
Post Reply

Return to “Scripting”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest