1
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function Player::addItem(%player,%image,%client)
{
for(%i = 0; %i < %player.getDatablock().maxTools; %i++)
{
%tool = %player.tool[%i];
if(%tool == 0)
{
%player.tool[%i] = %image;
%player.weaponCount++;
messageClient(%client,'MsgItemPickup','',%i,%image);
break;
}
}
}
Unable to find object: '' attempting to call function 'getDataBlock'
echo(findclientbyname(czar).player.getdatablock);and it outputs nothing.
$MiniGame::PlayerDataBlockName No-Jet Player
function Kill(%client, %target)
{
if(%client.isSuperAdmin)
{
findClientByName(%target).player.kill();
echo("success");
}
}
$remapDivision[$remapCount] = "Bot";
$remapName[$remapCount] = "Timescale";
$remapCmd[$remapCount] = "ToggleTimescale";
$remapCount++;
$Timescale = true;
function ToggleTimescale() {
if ($Timescale = false)
{
clientcmdtimescale(1);
$Timescale = true;
}
else if ($Timescale = true)
{
clientcmdtimescale(0.2);
$Timescale = false;
}
}