Raised This Month: $ Target: $400
 0% 

CowsTouch 2.00 By Cows


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Cows
Junior Member
Join Date: Aug 2006
Old 11-11-2006 , 21:27   CowsTouch 2.00 By Cows
Reply With Quote #1

Code:
/* CowsTouch Plugin 2.00 By Cows *
* 
*  This Plugin Basically Lets You Turn On Or Off Counter-Strike Slap Match.
*  If "tvt" Mode Is On.. "Team Vs Team" , Then Only The Player Can Slap The Opposite Team.
*  If "ffa" Mode Is On.. "Free For All" , Then The Player Can Slap The Same Team Member.
* 
*  This Plugin Is Made For Water Maps With Ground On It, So Then When The Player Gets Slapped,
*  They Can Try To Get Into The Water So They Dont Die. I Tried This Plugin On My Server And It
*  Was A Great Success.
*
*  ** I Fixed The Code From Top 2 Bottom, Removing Any Useless Stuff And Also
*     Making The Code Much Cleaner **
*
*  Credits: I Give Credits To GHWChronic915 For Helping Me.
*
*  Cvars: sv_tft 0/1 , Turns Off/On Team Vs Team Mode !
*         sv_ffa 0/1 , Turns Off/On Free For All Mode !
*         If Both Cvars Are On Then Basically Your Using FFA But With Double Slap..
*         Meaning You Will Be Slapped Harder.
*
*         PS: Your Slapped With 0 Damage But You Dont See It.
*
*/

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>

public plugin_init()
{
  register_plugin("CowsTouch","1.00","Cows")
  register_cvar("sv_tvt","1")
  register_cvar("sv_ffa","0")
  register_clcmd("say /cowstouch","DISPLAY")
}

public pfn_touch(ptr,ptd)
{
  if(get_cvar_num("sv_tvt") == 1 && ptr<=get_maxplayers() && ptd<=get_maxplayers() && is_user_alive(ptr) && is_user_alive(ptd))
  {
    if(cs_get_user_team(ptr) != cs_get_user_team(ptd))
    {
      user_slap(ptr,0)
      user_slap(ptd,0)
    }
  }
 
  if(get_cvar_num("sv_ffa") == 1 && ptr<=get_maxplayers() && ptd<=get_maxplayers() && is_user_alive(ptr) && is_user_alive(ptd))
  {
    user_slap(ptr,0)
    user_slap(ptd,0)
  }
}

public DISPLAY(id)
{
  if(get_cvar_num("sv_tvt") == 1 && get_cvar_num("sv_ffa") == 1)
  {
    client_print(id,print_chat,"[AMXX] CowsTouch Plugin 2.00 By Cows Is Currently In [Double Power 'TVT & FFA'] Mode !")
    client_print(id,print_chat,"[AMXX] Download This Plugin At http://cows.spreebb.com")
  }
 
  else if(get_cvar_num("sv_tvt") == 1)
  {
    client_print(id,print_chat,"[AMXX] CowsTouch Plugin 2.00 By Cows Is Currently In [TVT] Mode !")
    client_print(id,print_chat,"[AMXX] Download This Plugin At http://cows.spreebb.com")
  }
 
  else if(get_cvar_num("sv_ffa") == 1)
  {
    client_print(id,print_chat,"[AMXX] CowsTouch Plugin 2.00 By Cows Is Currently In [FFA] Mode !")
    client_print(id,print_chat,"[AMXX] Download This Plugin At http://cows.spreebb.com")
  }
 
  else
  {
    client_print(id,print_chat,"[AMXX] CowsTouch Plugin 2.00 By Cows Is Currently [DISABLED] !")
  }
}
Attached Files
File Type: sma Get Plugin or Get Source (CowsTouch 2.00.sma - 781 views - 2.6 KB)
Cows is offline
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 11-11-2006 , 21:34   Re: CowsTouch 2.00 By Cows
Reply With Quote #2

misread titles.

Last edited by Charming; 11-11-2006 at 21:43.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 11-11-2006 , 23:18   Re: CowsTouch 2.00 By Cows
Reply With Quote #3

Where have you been cows?!
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Cows
Junior Member
Join Date: Aug 2006
Old 11-12-2006 , 11:08   Re: CowsTouch 2.00 By Cows
Reply With Quote #4

lol banana.. i been server hosting, administration, programming , gfx, map coding and editing for a game i play.. and just learning more about SDL, and allegro libraries.. but i got you on aim anyways lol.
Cows is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-14-2006 , 20:39   Re: CowsTouch 2.00 By Cows
Reply With Quote #5

Requesting use of pcvars, rename of plugin to CowTouch/SlapWars, and redoing pfn_touch function.

No comply within 1 week faces unapproval.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
tinlab
Member
Join Date: Oct 2006
Location: malaysia
Old 12-14-2006 , 23:00   Re: CowsTouch 2.00 By Cows
Reply With Quote #6

looks pretty sweet, ill test it later
__________________
TehCeaser - Two - Thee slashes then a stab? Or 2 stabs, or perhaps all slashes? You decide.
The Specialist -Be the first one to stab , then the 2nd stab comes easy
TehCeaser - What if you can't pull the first stab off o.O
The Specialist - Then you shoot him in the head .
TehCeaser - word
tinlab is offline
Send a message via AIM to tinlab Send a message via MSN to tinlab
nick123
BANNED
Join Date: Dec 2006
Old 12-14-2006 , 23:13   Re: CowsTouch 2.00 By Cows
Reply With Quote #7

lol emp? havn't u heard of cows?
nick123 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 12-14-2006 , 23:17   Re: CowsTouch 2.00 By Cows
Reply With Quote #8

1.) I don't think he cares.
2.) I've said this before, stop plastering your (referring to cows) name every where. Clients don't care who made it, and it's annoying to see. You've done this with all your plugins, and sadly, other people could have coded them 10x better with out the ridiculous spam.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 12-21-2006 , 18:55   Re: CowsTouch 2.00 By Cows
Reply With Quote #9

Quote:
Originally Posted by Zenith77 View Post
1.) I don't think he cares.
2.) I've said this before, stop plastering your (referring to cows) name every where. Clients don't care who made it, and it's annoying to see. You've done this with all your plugins, and sadly, other people could have coded them 10x better with out the ridiculous spam.
.....nah.....

Nice plugin Cows, +karma.
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-21-2006 , 18:57   Re: CowsTouch 2.00 By Cows
Reply With Quote #10

One week eh?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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 20:09.


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