Discord Thread On command event need help

  • 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!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
Hello! I want to make a check with an event on command "/setjob". I did loop all players but can’t figure out how to make a check that this command specified loop-player? Like, he tried to do something like this but it didn’t work out :emoji_frowning:.

Here’s my code:
`
on command "/setjob":
loop all players in world "SCPRP":
if loop-player's vehicle is set:
if command contains "%loop-player%":
if name of vehicle of loop-player is "&eSeat":
delete vehicle of loop-player`

Posted by: elgerelg from the skUnity Discord. View the thread on skUnity Discord here
 
Command very long because I make many jobs. But command setjob has two arguments and Idk how to check by argument
command /setjob [<text>] [<player>]:
I tried to make check if command contains "%loop-player%" but this didn't work
I dont have any errors

Posted by: elgerelg from the skUnity Discord.
 
if you have command, for what u using this on command "/setjob":
this is how it should look like
code_language.skript:
command /setjob [<text>] [<player>]:
    trigger:
        world of arg-2 is "SCPRP"
        arg-2's vehicle is set
        name of vehicle of arg-2 is "&eSeat"
        delete vehicle of arg-2

Posted by: _grifin_ from the skUnity Discord.
 
Status
Not open for further replies.