Raised This Month: $ Target: $400
 0% 

VS Health Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-26-2006 , 08:48   Re: VS Health Plugin
Reply With Quote #10

Code:
#include <amxmodx> #include <fun> public plugin_init() {     register_plugin("VS Limb Remover", "1.0", "Skittles")     register_logevent("roundstart", 2, "0=World triggered", "1=Round_Start") } public roundstart(id)     set_task(1.0,"delay",id) public delay(id) {     server_print("executes function")     new players[32], num, strTeam[32], p;     get_players(players, num)         for ( new i ; i < num ; i++ ) {                 p = players[i]                 get_user_team(p, strTeam, 31) // other parameter is a return. was id.                 if ( equal(strTeam, "SLAYER", 5) )             set_user_health(p, 95) // was id.                     else if ( equal(strTeam, "VAMPIRE", 7) )             set_user_health(p, 100) // was id.     } }
Quote:
Originally Posted by |POW|Da_ghost View Post
Correct me If i'm wrong but aren't teams Tracked by numbers?(I may be confusing this With ES(source))
You can do it both ways.

Last edited by [ --<-@ ] Black Rose; 12-26-2006 at 17:58.
[ --<-@ ] Black Rose is offline
 



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 05:10.


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