Raised This Month: $12 Target: $400
 3% 

[ES] Limite de tiempo cuando queda 1 CT


  
 
 
Thread Tools Display Modes
Author Message
Lokotito
Member
Join Date: Apr 2008
Location: Argentina
Old 06-14-2010 , 11:30   [ES] Limite de tiempo cuando queda 1 CT
#1

Hola, me podrian hacer o ayudar a hacer un plugin para cuando quede 1 CT tenga 60 segundos para matar al terrorista o muere y si se puede que le aparezca un hud que diga el tiempo que le queda.
__________________
Lokotito is offline
Send a message via MSN to Lokotito
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-14-2010 , 12:28   Re: [ES] Limite de tiempo cuando queda 1 CT
#2

No lo testie:

Code:
#include <amxmodx> #define PLUGIN  "Last CT Countdown" #define AUTHOR  "Alucard" #define VERSION "0.0.1" #define TASK_ID_COUNTDOWN 1337 // Poner esto en 0 para que cuando el player es matado por el plugin // le remueva 1 frag, en cambio de estar en 1 no le remueve ningun frag #define FRAG 1 // Vos dijiste 60 segundos, pero por si las dudas, podes cambiar // el tiempo desde esta variable new g_iCountdown = 60; new g_iMaxPlayers; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR);         register_event("HookDeathMsg", "DeathMsg", "a");         register_logevent("HookRoundEnd", 2, "1=Round_End");         g_iMaxPlayers = get_maxplayers( ); } public HookDeathMsg(id) {     new Players[32], iNum;     get_players(Players, iNum, "ae", "CT"); // no me acuerdo si esta bien COUNTER_TERRORIST :p         if(iNum == 1)     {         new idCT = find_player("ef", "CT");                 set_task(0.5, "StartCountdown", idCT + TASK_ID_COUNTDOWN);     }         return PLUGIN_CONTINUE; } public HookRoundEnd( ) {     for(new i = 1; i <= g_iMaxPlayers; i++)     {         if(!is_user_connected(i) ) continue;                 remove_task(i + TASK_ID_COUNTDOWN);     } } public StartCountdown(taskid) {     new id = taskid - TASK_ID_COUNTDOWN;         if(g_iCountdown > 0)     {         set_hudmessage(80, 80, 80, -1.0, 0.1, 0, 0.0, 1.1, 0.0, 0.0, -1);         show_hudmessage(id, "Tiempo para matar al terrorista: %d", g_iCountdown);                 g_iCountdown--;                 set_task(1.0, "StartCountdown", id + TASK_ID_COUNTDOWN);     }     else     {         user_kill(id, FRAG);     } }
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 06-14-2010 at 16:13.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Lokotito
Member
Join Date: Apr 2008
Location: Argentina
Old 06-14-2010 , 15:35   Re: [ES] Limite de tiempo cuando queda 1 CT
#3

Gracias, ahora lo pruebo!
Lokotito is offline
Send a message via MSN to Lokotito
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 06-14-2010 , 15:43   Re: [ES] Limite de tiempo cuando queda 1 CT
#4

es CT no COUNTER-TERRORIST
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-14-2010 , 16:14   Re: [ES] Limite de tiempo cuando queda 1 CT
#5

Quote:
Originally Posted by Starsailor View Post
es CT no COUNTER-TERRORIST
fixed.-
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode