Author Topic: /Warp key bind script  (Read 738 times)

Can somone make a /warp key bind script? i tried making my own but I failed

Code: [Select]
$remapDivision[$remapCount] = "Warp";
$remapName[$remapCount] = "Admin Only";
$remapCmd[$RemapCount] = "wm";
$remapCount++;
function wm()
{
 commandtoserver('warp');
}
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.
« Last Edit: July 04, 2010, 12:52:39 PM by Crysist »

Code: [Select]
$remapDivision[$remapCount] = "Warp";
$remapName[$remapCount] = "Admin Only";
$remapCmd[$RemapCount] = "wm";
$remapCount++;
function wm()
{
 commandtoserver('warp');
}
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.
You don't need to check client-sided, it does the check server-sided.

Code: [Select]
$remapDivision[$remapCount] = "Warp";
$remapName[$remapCount] = "Admin Only";
$remapCmd[$RemapCount] = "wm";
$remapCount++;
function wm()
{
 commandtoserver('warp');
}
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.

Couldn't it simply be done with:

Code: [Select]
moveMap.bindCmd(keyboard, "N", "", "commandToServer('warp');");
Changing N to whatever he needs? Sure, you don't have it added to the controls list, but... meh.