Jump to content

Help-me !


Dinossauro

Recommended Posts

Posted

Hello

I made a script to log out of the server. Players write / exit and passed 5 seconds come out!

function KickPlayer(thePlayer,reason) 
    kickPlayer ( thePlayer, "Console", reason ) 
end 
  
function kickPlayerHandler ( sourcePlayer, commandname, kickedname, reason ) 
    local reason = "You came out successfully." 
    outputChatBox ( "You will leave the server, in 5 seconds" ) 
    setTimer ( KickPlayer, 5000, 1, sourcePlayer,reason ) 
end 
addCommandHandler ( "exit", kickPlayerHandler) 

But I wanted a player that you see in writing / exit, writes up / reconnect or / quit, were fined. That is lost deaths in the five tab ...

Help, thanks.

Posted

You want to punish these who use "/reconnect" or "/quit"?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

As far as I know, you are not able to cancel such commands as /exit, /quit, /reconnect, /connect.

If I helped you, please click the like button on the right ;) Thanks!

Posted
Hello

I made a script to log out of the server. Players write / exit and passed 5 seconds come out!

function KickPlayer(thePlayer,reason) 
    kickPlayer ( thePlayer, "Console", reason ) 
end 
  
function kickPlayerHandler ( sourcePlayer, commandname, kickedname, reason ) 
    local reason = "You came out successfully." 
    outputChatBox ( "You will leave the server, in 5 seconds" ) 
    setTimer ( KickPlayer, 5000, 1, sourcePlayer,reason ) 
end 
addCommandHandler ( "exit", kickPlayerHandler) 

But I wanted a player that you see in writing / exit, writes up / reconnect or / quit, were fined. That is lost deaths in the five tab ...

Help, thanks.

you made it?

you use my code

viewtopic.php?f=91&t=47747

i won't help you anymore

357ac0078264.jpg

- Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]

Posted

You can try detecting both commands with the event: onPlayerCommand, I'm not sure if it'll work with these two though.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...