Raised This Month: $ Target: $400
 0% 

Freeze Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-11-2013 , 09:05   Re: Freeze Players
Reply With Quote #1

Code:
public Cmdround(id) {     if (task_exists(TASKID))         remove_task(TASKID)         set_hudmessage(255, 0, 0, -1.0, 0.0, 0, 0.1, 14.0, 0.1, 1.0, 1)     show_hudmessage(0, "[HideNseeK]")         Timer = 10     set_task(1.0, "Cmdcountdown", TASKID, _, _, "a", Timer)         new players[32], count     get_players(players, count, "ae", "CT")         for(new i; i < count; i++) {         set_pev(players[ i ], pev_flags, pev(i, pev_flags) | FL_FROZEN) // you still had id here instead of players[ i ]         set_task(11.0, "RemoveFreeze", players[i])     }         get_players(players, count, "ae", "TERRORIST")         for(new i; i < count; i++) {         strip_user_weapons(players[i])     } } public Cmdcountdown(id) {     Timer--         if (Timer > 0)     {         set_hudmessage(255, 255, 255, -1.0, 0.03, 0, 0.1, 1.0, 0.1, 0.1, 2)         show_hudmessage(0, "%i", Timer)     }     else     {         set_hudmessage(255, 255, 255, -1.0, 0.03, 0, 0.1, 3.0, 0.1, 1.0, 3)         show_hudmessage(0, "Ready or not, here we come!")         new players[32], count         get_players(players, count, "ae", "CT")                 for(new i; i < count; i++) {             set_task(2.0, "StripWeapons", players[i])         }     } } public RemoveFreeze(id) {     if(is_user_alive(id)) {         set_pev(id, pev_flags, pev(id, pev_flags) & ~FL_FROZEN)     } }
__________________
Blizzard_87 is offline
Reply



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 16:14.


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