Raised This Month: $ Target: $400
 0% 

suprise


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-20-2005 , 18:17  
Reply With Quote #8

Code:
#include <amxmodx> #include <fun> #define SUPERSPEED      (1<<0) // 1 #define NINEKILL        (1<<1) // 2 new PlayerFlags[33] new PlayerFrags[33] public plugin_init() {     register_plugin("suprise", "1.0", "Nightscream")     register_logevent("new_round",2,"0=World triggered","1=Round_Start")     set_cvar_num("sv_maxspeed", 1000) } public new_round() {     new maxplayers = get_maxplayers()     new j     for(j=1; j <= maxplayers; j++)     {         new superspeedmsg[64]         new deaths = get_user_deaths(j)         new frags = get_user_frags(j)         format(superspeedmsg, 63, "[AMXX] You have superspeed for one round")         if ((deaths == 10) & (frags < 10))         {                 set_user_maxspeed(j, 1000.0)                 client_print(j ,print_chat, superspeedmsg)             PlayerFlags[j] += SUPERSPEED         }         else if(PlayerFlags[j] & SUPERSPEED)         {             set_user_maxspeed(j, -1.0)             client_print(j, print_chat, "[AMXX] Your SuperSpeed has ended.")             PlayerFlags[j] -= SUPERSPEED         }         if(frags == 9)         {             client_print(j, print_chat, "[AMXX] If you kill 1 person without get killed you get a suprise.")             PlayerFlags[j] += NINEKILL             PlayerFrags[j] += get_user_frags(j)         }         if(PlayerFlags[j] & NINEKILL) //&& PlayerFrags[j] += )         {             if(frags > PlayerFrags[j])             {                 set_user_maxspeed(j, 1000.0)                 client_print(j ,print_chat, superspeedmsg)                 PlayerFlags[j] += SUPERSPEED                 PlayerFlags[j] -= NINEKILL                 PlayerFrags[j] -= 9             }             else if(frags == PlayerFrags[j])             {                 PlayerFlags[j] -= NINEKILL                 PlayerFrags[j] -= 9             }         }     }     return PLUGIN_CONTINUE }

If someone see something wrong, Please feel free to edit it. I believe this should work.

Edited* 5:02pm 4/20/05
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
 



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 09:50.


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