Raised This Month: $32 Target: $400
 8% 

SuperSlap


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   GHW_Chronic (70)
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-13-2008 , 07:38   SuperSlap
Reply With Quote #1

Super Slap
v1.3

Description :
This is a much more usefull slap,called superslap.
You can slap a player/team/all player multiple time with an interval of 0.1 second... 99 slaps in 10 seconds. The admin can be skiped from slaping if the cvar (bellow) is disabled/set to 0.

Changelog:
[1.3]
-
The admin will be skiped from slaping.
- Added cvar for skiping or not the admin.
[1.2]
- Removed multi-lingual.
- Added str_to_float : now you cand slap with interval values smaller than 1.
- Optimizated code.
[1.1]
-
Added team option.
- Removed HUD / chat announce cvar.
- Optimizated code.
[1.0]
- First released.

Credits :
- SAMURAI16 for solving a "tag mismatch"
- GHW_Chronic for sugestions
- YamiKaitou & Emp` for sugestions
- Alka - helped me to release version 1.2

Cvar :
superslap_admin 1/0 - enable/disable slaping the admin who uses the command (default 0)

Comand :
amx_superslap <target/ @/@T/@CT> <power> <interval> <times>

EXAMPLES :
Code:
amx_superslap SAMURAI 0 1 5
-> it will slap SAMURAI 5 times with 0 dmg and an inteval of 1 second
or
Code:
amx_superslap @T 1 1 5
-> slap team T 5 times with 1 dmg and an interval of 1 second
Code:
amx_superslap @ 1 0.1 90
-> slap all players 90 times with 1 dmg and an interval of 0.1 second
Attached Files
File Type: sma Get Plugin or Get Source (super_slap.sma - 3556 views - 2.2 KB)
__________________


Last edited by anakin_cstrike; 08-27-2008 at 21:48.
anakin_cstrike is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 05-13-2008 , 10:02   Re: SuperSlap
Reply With Quote #2

Quote:
[sv]
NO_ACCESS = Du har inte tillgang till detta kommando
NOTFOUND = Spelare '%s' var inte funnen
SUPERSLAP_USAGE = Anv'a'ndning: amx_superslap <target> <power> <interval> <times>
SUPERSLAP_TARGET = En administrator har slapat '%s' med %d skada f'o'r %d ganger med en interval av %d sekunder.
SUPERSLAP_TARGET2 = %s har slapat '%s' med %d skada %d ganger med en interval av %d sekunder.
__________________
atomen is offline
Send a message via MSN to atomen
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-13-2008 , 14:48   Re: SuperSlap
Reply With Quote #3

Done thanks.
__________________

anakin_cstrike is offline
ESTCOBS
Junior Member
Join Date: May 2008
Location: Kraków, Poland
Old 05-13-2008 , 17:21   Re: SuperSlap
Reply With Quote #4

[pl]
NO_ACCESS = Nie masz dostepu do tej komendy !
NOTFOUND = Gracz '%s' nie zostal odnaleziony !
SUPERSLAP_USAGE = UZYCIE: amx_superslap <cel> <sila> <przerwa> <czas>
SUPERSLAP_TARGET = Admin uderzyl '%s' zabierajac %d hp przez %d sekund z przerwami co %d sekund
SUPERSLAP_TARGET2 = %s uderzyl '%s' zabierajac %d hp przez %d sekund z przerwami co %d sekund

Polish translate by ESTCOBS :p
__________________
Róót ! xD
ESTCOBS is offline
gevo
Senior Member
Join Date: Jun 2007
Old 05-13-2008 , 18:03   Re: SuperSlap
Reply With Quote #5

nice good job

so this is basicly uaio bitchslap but u can set an interval and the dmg?

oh and +karma
gevo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-13-2008 , 20:20   Re: SuperSlap
Reply With Quote #6

I recommend putting this part before you start reading the args
PHP Code:
if(read_argc() < 4){
        
console_print(id,"%L",LANG_PLAYER,"SUPERSLAP_USAGE")
        return 
PLUGIN_HANDLED
    

Change arg[24] to arg[32]. The name is max 31 chars.

I would also recommend adding a check to make sure they are not dead, such as using this instead
PHP Code:
new target cmd_target(idarg12
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-13-2008 , 23:45   Re: SuperSlap
Reply With Quote #7

would be useful to have
Code:
	new Float:interval = str_to_float(arg3)
so you can do smaller values than 1.
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`
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-14-2008 , 08:08   Re: SuperSlap
Reply With Quote #8

@YamiKaitou : at cmd_target is what i have used and an error apears...but i will change that
@Emp` : that was what i have used ...but...

Edit : Done but no str_to_float
__________________


Last edited by anakin_cstrike; 05-14-2008 at 08:12.
anakin_cstrike is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-14-2008 , 08:22   Re: SuperSlap
Reply With Quote #9

Change read_argv(1,arg,23) to read_argv(1,arg,31)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 05-14-2008 , 08:48   Re: SuperSlap
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
Change read_argv(1,arg,23) to read_argv(1,arg,31)
Lol done...
__________________

anakin_cstrike is offline
Reply


Thread Tools
Display Modes

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:48.


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