player.world

Started by MEGAMIND, Jul 18, 2018, 06:14 PM

Previous topic - Next topic

MEGAMIND

does anyone know that how can we make a cmd in which if a player does /goto world of his own choice like

/world 15 upto so on

if anyone know how to do it, ill be gratefull

DizzasTeR

function onPlayerComand(player, cmd, args) {
    if(cmd == "world") {
        if(!IsNum(args)) return false;
        player.World = args.tointeger()
    }
}

MEGAMIND

Quote from: Doom_Kill3R on Jul 18, 2018, 06:18 PMfunction onPlayerComand(player, cmd, args) {
    if(cmd == "world") {
        if(!IsNum(args)) return false;
        player.World = args.tointeger()
    }
}
awsome thanks alot..