Raised This Month: $51 Target: $400
 12% 

AMX Spank2 (Denkkar Seffyd) (Updated 03/13/2006)


Post New Thread Reply   
 
Thread Tools Display Modes
popeye5371
Junior Member
Join Date: Aug 2005
Location: Annapolis
Old 08-19-2005 , 22:57   not working for me
Reply With Quote #11

i put the sma file in he addons/amxmodx/scripting,and its not working
i also tried it with the amxx file in the addons/amxmodx/plugins,NADA

help
popeye5371 is offline
Send a message via AIM to popeye5371 Send a message via MSN to popeye5371
[nFb]GraveKeeper
Senior Member
Join Date: Mar 2004
Location: Connecticut, U.S.A.
Old 08-29-2005 , 02:25  
Reply With Quote #12

Seems this plugin doesn't work with 1.55, it executes saying that the player is being spanked and plays the sound files but no slaps. Any suggestions? I have been out of the loop for awhile.
[nFb]GraveKeeper is offline
Send a message via AIM to [nFb]GraveKeeper
cartman
Junior Member
Join Date: Sep 2005
Location: Tallahassee FL
Old 09-08-2005 , 20:16  
Reply With Quote #13

I have the same problem... the sound plays and the slaps don't happen. I have tried recompiling the .sma with the new compiler and got the same result. A fix would be great.. .the guys on the server love this plugin.
cartman is offline
Send a message via AIM to cartman Send a message via MSN to cartman Send a message via Yahoo to cartman
MrCoolMan
Member
Join Date: Nov 2005
Old 12-01-2005 , 22:30  
Reply With Quote #14

Well i make this short i need this plugin for amxmod 1,6 do any of u think u can fix it so i works on 1.6?

as it is now u hear the sound and the hud msg appear but nothing, but i can tell u this is one off the most used plugin at our server at specially Fridays coz then we have some thing we call Friday Fun, so at this point i can update my server
MrCoolMan is offline
lickityspliff
Member
Join Date: Feb 2005
Old 12-17-2005 , 15:33  
Reply With Quote #15

so i was looking through the manul here on the commands so i thought ide have a look in the sma and was wondering about these lines.

Code:
set_task(2.1, "spanking", 0, ids, 1, "a", 0)
Code:
public spanking(ids[]){	
	client_cmd(ids[0],"say Yes, yes! Spank me good.") // Makes player moan with pleasure
	set_task(0.2, "slap_player", 0, ids, 1, "a", 7)	 // Gives the player 7 spanks at 0.2 sec intervals
	return PLUGIN_CONTINUE
}

public slap_player(ids[]){ 
	user_slap(ids[0],0) 	// Slap player with 0 damage
	return PLUGIN_CONTINUE
is there a better way to do this? and or is this why it doesnt work for 1.6?
lickityspliff is offline
cartman
Junior Member
Join Date: Sep 2005
Location: Tallahassee FL
Old 12-20-2005 , 09:04  
Reply With Quote #16

I'm afraid that I'm not very good at scripting having really only dealt with porting a couple plugins. If someone could fix this plugin for 1.6 me love you long time
cartman is offline
Send a message via AIM to cartman Send a message via MSN to cartman Send a message via Yahoo to cartman
lickityspliff
Member
Join Date: Feb 2005
Old 12-21-2005 , 10:46  
Reply With Quote #17

/cry
lickityspliff is offline
lickityspliff
Member
Join Date: Feb 2005
Old 01-02-2006 , 12:39  
Reply With Quote #18

oh yeah i kinda jerry rigged it to work but it only spanks once and the sound plays after BUT it works (kinda) anyways mr.420 said he was gonna fix this one but here is what i got as a noob
Code:
#include <amxmodx> 
#include <amxmisc>

public admin_spanking(id,level,cid){ 
	if (!cmd_access(id,level,cid,2))
		return PLUGIN_HANDLED 

	new name[32], name2[32] 
	new arg[32] 
	
	get_user_name(id,name2,31) // Admin name
	read_argv(1,arg,31) // Target player
	 
	new player = cmd_target(id,arg,5)
	if (!player)        // Exception catch
		return PLUGIN_HANDLED 

	new ids[2] 
	ids[0] = player
	get_user_name(player,name,32)  // Extract name from player id
	
	client_cmd(0,"spk misc/bendover") // Wav to all. For player only: client_cmd(ids[0], "spk misc/bendover")			
	 
	client_print(0,print_chat, "%s is bending over for a spanking lovingly administered by %s",name,name2) // Prints a message to all stating that a player is being spanked by the admin.
	
	user_slap(ids[0],0)
	
	return PLUGIN_HANDLED
}
public plugin_precache(){  
	precache_sound("misc/bendover.wav")	// Forces client to download wav if not already present	
	return PLUGIN_CONTINUE 
} 
public plugin_init(){ 
	register_plugin("AMX Spank2","0.9.3","FIXMEFOR1.6") 
	register_concmd("amx_spank2","admin_spanking",ADMIN_SLAY,"<authid, nick or #userid>") 
	return PLUGIN_CONTINUE
lickityspliff is offline
Denkkar
New Member
Join Date: Dec 2005
Old 01-04-2006 , 19:28  
Reply With Quote #19

I re-worked my script a bit, the code is now exactly what it should be according to the documentation I found here: http://www.amxmodx.org/doc/

It compiles anyway. I don't play CS 1.6 anymore, and I certainly do have a server up to test this. But it *should* work. Thank TooL from http://260servers.net for letting me know I still had customers here

Code:
#include <amxmodx> 
#include <amxmisc>

public admin_spanking(id,level,cid){ 
	if (!cmd_access(id,level,cid,2))
		return PLUGIN_HANDLED 

	new name[32], name2[32] 
	new arg[32] 
	
	get_user_name(id,name2,31) // Admin name
	read_argv(1,arg,31) // Target player
	 
	new player = cmd_target(id,arg,5)
	if (!player)        // Exception catch
		return PLUGIN_HANDLED 

	new ids[1] 
	ids[0] = player
	get_user_name(player,name,32)  // Extract name from player id
	client_cmd(0,"spk misc/bendover") // Wav to all. For player only: client_cmd(ids[0], "spk misc/bendover")
					 
					 
	client_print(0,print_chat, "%s is bending over for a spanking lovingly administered by %s",name,name2)
	// Prints a message to all stating that a player is being spanked by the admin.

	set_task(2.1, "spanking", 13587, ids, 1)
	// Delays spanking by 2.1 seconds to give the bendover.wav time to play
	// time = 2.1, func = "spanking", taskID = 0, parameters = ids, 
  // len(parameters) = 1, flag "a" = repeat, repeat times = 0
	
	return PLUGIN_HANDLED
} 


public spanking(params[], id){	
	client_cmd(params[0],"say Yes, yes! Spank me good.") // Makes player moan with pleasure
	set_task(0.2, "slap_player", 13588, params, 1, "a", 7)	 // Gives the player 7 spanks at 0.2 sec intervals
	return PLUGIN_CONTINUE
}

public slap_player(params[], id) { 
	user_slap(params[0], 0) 	// Slap player with 0 damage
	return PLUGIN_CONTINUE
}


public plugin_precache()   {  
	precache_sound("misc/bendover.wav")	// Forces client to download wav if not already present	
	return PLUGIN_CONTINUE 
} 


public plugin_init(){ 
	register_plugin("AMX Spank2","0.9.4","[email protected]") 
	register_concmd("amx_spank2","admin_spanking",ADMIN_SLAY,"<authid, nick or #userid>") 
	return PLUGIN_CONTINUE 
}
If it works, drop me a line at [email protected] and I'll host a zip with a compiled amxx file of my webspace and link it here. If the task still doesn't execute, then that's totally bizzare... it's such a simple plugin... it hardly seems possible to screw it up...

UPDATE: Okay so that didn't work! Doh! I edited the code here with minor changes, let me know if you at least see "Yes, yes! Spank me good."
Denkkar is offline
Send a message via Yahoo to Denkkar
TooL
Senior Member
Join Date: May 2004
Location: NC
Old 01-04-2006 , 22:24  
Reply With Quote #20

The sound works fine but the slaps do not occur for some reason.
__________________
TooL is offline
Send a message via ICQ to TooL Send a message via AIM to TooL Send a message via MSN to TooL Send a message via Yahoo to TooL
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 10:46.


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