PDA

View Full Version : Ask For Scrpits LFSlapper


MHGOOL515
2nd July 2011, 15:22
hi Guys

I WANT ASK FOR how i add scrpits Server in a folder

and How do I give a message when you exit the player

sinanju
2nd July 2011, 16:00
I WANT ASK FOR how i add scrpits Server in a folder

If you call it something like scripts.lpr, then you would add it into the /default/includes folder, then open addonused.lpr and put in new line
include( "./scripts.lpr");

Is that what you mean?

How do I give a message when you exit the player

Either via a button, a privMsg, a globalMsg, etc.

If by exit, you mean KICK, then it's likely that player would be kicked before message seen, e.g.

Sub OnConnectCloseKick( $KeyFlags,$id )
privMsg( "^1Bye!" );
cmdLFS("/kick " . GetCurrentPlayerVar("UserName") );
EndSub

If by exit, you mean SPEC, then message would be seen.

MHGOOL515
2nd July 2011, 19:18
If you call it something like scripts.lpr, then you would add it into the /default/includes folder, then open addonused.lpr and put in new line
include( "./scripts.lpr");

Is that what you mean?



Either via a button, a privMsg, a globalMsg, etc.

If by exit, you mean KICK, then it's likely that player would be kicked before message seen, e.g.

Sub OnConnectCloseKick( $KeyFlags,$id )
privMsg( "^1Bye!" );
cmdLFS("/kick " . GetCurrentPlayerVar("UserName") );
EndSub

If by exit, you mean SPEC, then message would be seen.

include( "./scripts.lpr");<<<Thnx

but i Where i put privMsg( "^1Bye!" );
Examined him and did not find him changed and not changed

ok i want if any one told fu** or su**

kick him

sinanju
2nd July 2011, 21:26
ok i want if any one told fu** or su**

kick him
Ok, search in the lfslapper.lpr file for Swearword filter, then for a line
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );

You could change /spec to /kick, or you could change the normal script of

$SwearWordsMax = 2; # Maximum number of allowed swearwords per session

Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear11}%" ) );
privMsg( langEngine( "%{main_swear12}%", GetCurrentPlayerVar("SwearWordsRem") ) );
EndEvent

Event OnSwearWords2( $userName ) # Player event
privMsg( langEngine( "%{main_swear21}%" ) );
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );
EndEventto something like

$SwearWordsMax = 1; # Maximum number of allowed swearwords per session

Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear21}%" ) );
cmdLFS( "/kick " . GetCurrentPlayerVar("NickName") );
EndEvent

MHGOOL515
2nd July 2011, 22:12
Ok, search in the lfslapper.lpr file for Swearword filter, then for a line
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );

You could change /spec to /kick, or you could change the normal script of

$SwearWordsMax = 2; # Maximum number of allowed swearwords per session

Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear11}%" ) );
privMsg( langEngine( "%{main_swear12}%", GetCurrentPlayerVar("SwearWordsRem") ) );
EndEvent

Event OnSwearWords2( $userName ) # Player event
privMsg( langEngine( "%{main_swear21}%" ) );
cmdLFS( "/spec " . GetCurrentPlayerVar("NickName") );
EndEventto something like

$SwearWordsMax = 1; # Maximum number of allowed swearwords per session

Event OnSwearWords1( $userName ) # Player event
privMsg( langEngine( "%{main_swear21}%" ) );
cmdLFS( "/kick " . GetCurrentPlayerVar("NickName") );
EndEvent

Thnx DuDe :thumb: