| Blockland Forums > Suggestions & Requests |
| /Warp key bind script |
| (1/1) |
| Cca:
Can somone make a /warp key bind script? i tried making my own but I failed |
| Crysist:
--- Code: ---$remapDivision[$remapCount] = "Warp"; $remapName[$remapCount] = "Admin Only"; $remapCmd[$RemapCount] = "wm"; $remapCount++; function wm() { commandtoserver('warp'); } --- End code --- I just typed this up, there's probably also some way to check if the person is admin clientsided, but I don't know how. |
| lilboarder32:
--- Quote from: Crysist on July 04, 2010, 12:44:16 PM --- --- Code: ---$remapDivision[$remapCount] = "Warp"; $remapName[$remapCount] = "Admin Only"; $remapCmd[$RemapCount] = "wm"; $remapCount++; function wm() { commandtoserver('warp'); } --- End code --- I just typed this up, there's probably also some way to check if the person is admin clientsided, but I don't know how. --- End quote --- You don't need to check client-sided, it does the check server-sided. |
| MegaScientifical:
--- Quote from: Crysist on July 04, 2010, 12:44:16 PM --- --- Code: ---$remapDivision[$remapCount] = "Warp"; $remapName[$remapCount] = "Admin Only"; $remapCmd[$RemapCount] = "wm"; $remapCount++; function wm() { commandtoserver('warp'); } --- End code --- I just typed this up, there's probably also some way to check if the person is admin clientsided, but I don't know how. --- End quote --- Couldn't it simply be done with: --- Code: ---moveMap.bindCmd(keyboard, "N", "", "commandToServer('warp');"); --- End code --- Changing N to whatever he needs? Sure, you don't have it added to the controls list, but... meh. |
| Navigation |
| Message Index |