Only World 2 cmd

Started by Shovon^, Oct 02, 2016, 04:24 PM

Previous topic - Next topic

Shovon^

How can I add a command only for world two an the rest of the cmd's won't work in World two.
In simple : add cmds only for world 2
Iam the best and i only believe in Allah

Conatact me here on IRC:  #shovon^ @LUnet

jWeb


Shovon^

I asked for adding the cmds only for world two I dont want to disableing every cmds ....  UNDERSTOOD??
Iam the best and i only believe in Allah

Conatact me here on IRC:  #shovon^ @LUnet

jWeb


Cool

#4
if (player.World !=2)  MessagePlayer("Thijn Thanks and yes i know sq syntax but i was in hurry", player);

Thijn

Quote from: Hercules on Oct 02, 2016, 06:09 PMif (player.World ==!2)  MessagePlayer("Untested but its will work", player);
wut? Do you even know the squirrel syntax?

Cool

#6
Quote from: Thijn on Oct 02, 2016, 07:54 PM
Quote from: Hercules on Oct 02, 2016, 06:09 PMif (player.World ==!2)  MessagePlayer("Untested but its will work", player);
wut? Do you even know the squirrel syntax?
opps I was in hurry sorry updated

Shovon^

I want cmds to be added for only world two not to be disabled.
Iam the best and i only believe in Allah

Conatact me here on IRC:  #shovon^ @LUnet

jWeb

#8
Quote from: Shovon^ on Oct 03, 2016, 12:08 PMI want cmds to be added for only world two not to be disabled.

Seems the lag doesn't come from your ISP but rather from your brain.
Humor me and answer this question, what's the result of 2+2.1?

KAKAN

function onPlayeCommand( player, cmd, text ){
switch( player.World ){
case 1: return onWorld1Command( player, cmd, text );
case 2: return onWorld2Command( player, cmd, text );
}
function onWorldxCommand( player, cmd, text ){
//Put your shit commands...
}
It can be made more efficient though.

Quote from: jWeb on Oct 03, 2016, 12:13 PMSeems the lag doesn't come from your ISP but rather from your brain.
Sorry mate, here, the guys just want to code, they don't want to learn, so, they need ready-made snippets :)
oh no

Cool

Quote from: KAKAN on Oct 03, 2016, 12:35 PMfunction onPlayeCommand( player, cmd, text ){
switch( player.World ){
case 1: return onWorld1Command( player, cmd, text );
case 2: return onWorld2Command( player, cmd, text );
}
function onWorldxCommand( player, cmd, text ){
//Put your shit commands...
}
It can be made more efficient though.

Quote from: jWeb on Oct 03, 2016, 12:13 PMSeems the lag doesn't come from your ISP but rather from your brain.
Sorry mate, here, the guys just want to code, they don't want to learn, so, they need ready-made snippets :)
@KAKAN me want to learn :P