On quit of Server

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

ImEnzo

Supporter
Jan 29, 2017
25
1
0
33
I need a plugin like this:
if a player left the server hes inventory need to be cleared!

i tried it with console but it dont works, and i cant find a effect like this :/

++ I need something in it too
Like: when i click on a skull named "&a&lFriends" then make player execute command "/friend gui"
and when a player joins a server he needs to get a skull named "&a&lFriends" on the last slot
 
Last edited:
code_language.skript:
on quit:
    clear player's inventory

on join:
      set slot 8 of player to player head namd "&a&lFriends"

on rightclick with player head:
    tool's name = "&a&lFriends"
    cancel event
    player command "/friend gui"

on place of player head:
    tool's name = "&a&lFriends"
    cancel event

on inventory click at player head: #Bensku's fork inventory click.
    event-slot's name = "&a&lFriends"
    cancel event
 
Sorry, not happening anymore!
[doublepost=1487083702,1487081854][/doublepost]Just saw the code dont works :/
Idk if its because i dont have the Benskus skript? would u send it to me?
Error:
'player emerald' is not an item type set slot 8 of player to player emerald named "&a&lKosmetik"')
can't understand this event 'on inventory click at player head' (kosmetikitem.sk, line 16: on inventory click at player head:')

I changed a bit the Friends to Kosmetik this shouldn't be a problem i think so.

CODE:
code_language.skript:
on quit:
    clear player's inventory
 
on join:
      set slot 8 of player to player emerald named "&a&lKosmetik"
 
on rightclick with player head:
    tool's name = "&a&lFriends"
    cancel event
    player command "/trails"
 
on place of player head:
    tool's name = "&a&lKosmetik"
    cancel event
 
on inventory click at player head:
    event-slot's name = "&a&lKosmetik"
    cancel event
[doublepost=1487252661][/doublepost]BUMP