Raised This Month: $ Target: $400
 0% 

arrg, somebody help plz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tadoom
Junior Member
Join Date: Jan 2007
Old 01-16-2007 , 01:54   Re: arrg, somebody help plz
Reply With Quote #1

oh yeah and the other plugin is....

Code:
 public buy_frostnade(id)  {  if(!get_cvar_num("fn_on"))   return PLUGIN_CONTINUE;  // no custom buy needed  if(get_cvar_num("fn_override"))   return PLUGIN_HANDLED;  // not enough moneh  new money = g_money(id);  if(money < get_cvar_num("fn_price"))  {   client_print(id,print_center,"Not enough money");   return PLUGIN_HANDLED;  }  // already have a frost grenade  if(hasFrostNade[id])  {   client_print(id,print_center,"Already own fs.");   return PLUGIN_HANDLED;  }  // already have a smoke grenade  new weapons[32], num, i;  get_user_weapons(id,weapons,num);  for(i=0;i<num;i++)  {   if(weapons[i] == TFC_WPN_NORMALGRENADE)   {    client_print(id,print_center,"You already own a normal grenade.");    return PLUGIN_HANDLED;   }  }  // gimme gimme  hasFrostNade[id] = 1;  give_item(id,"weapon_normalgrenade");  g_money(id,money - get_cvar_num("fn_price"));  // display icon  message_begin(MSG_ONE,get_user_msgid("StatusIcon"),{0,0,0},id);  write_byte(1); // status (0=hide, 1=show, 2=flash)  write_string("dmg_cold"); // sprite name  write_byte(FROST_R); // red  write_byte(FROST_G); // green  write_byte(FROST_B); // blue  message_end();  return PLUGIN_HANDLED;  }
tadoom 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 22:25.


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