Hop til indhold
Stavox

HVOR LANG TID ER ER JEG JAILED!?!?


Emoyly

Recommended Posts

Er du et af de slags mennesker, som ikke kan overholde reglerne?

Så har jeg den perfekte E2 til dig!

Med denne E2 kan du se hvor lang tid der er tilbage af dit jail.

@name HVOR LANG TID ER ER JEG JAILED!?!?
@inputs 
@outputs 
@persist TimeLeft
@trigger 
runOnChat(1)
if(chatClk(lastSpoke()) & lastSpoke():isStaff()){
    A = lastSpoke():lastSaid():explode(" ")
    if(A[1,string]=="!jail" & chatClk(lastSpoke()) | A[1,string]=="!jailtp" & chatClk(lastSpoke())){
        if(A[2,string]:find("STEAM")){Ply=findPlayerBySteamID(A[2,string])}
        else{Ply=findPlayerByName(A[2,string])}
        if(Ply==owner()){
            TimeLeft=A[3,string]:toNumber()
            timer("Sekund",1000)
        }
    }
    if(A[1,string]=="!unjail" & chatClk(lastSpoke())){
        if(A[2,string]:find("STEAM")){Ply=findPlayerBySteamID(A[2,string])}
        else{Ply=findPlayerByName(A[2,string])}
        if(Ply==owner()){
            TimeLeft=0
        }
    }

}
if(clk("Sekund") & TimeLeft>0){
    TimeLeft--
    print("Du har "+TimeLeft+" sekunder tilbage af dit jail.")
    timer("Sekund",1000)
}

 

Link til kommentar
Del på andre sites

Arkiveret

Dette emne er nu arkiveret og er lukket for yderligere svar

×
×
  • Tilføj...

COOKIE- OG PRIVATLIVSPOLITIK PÅ STAVOX.DK

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privatlivspolitik - Vilkår for brug.