Blockland Forums > Modification Help
onMount function not working
Terror:
Lol i winar. I knew that just by reading the first post :P
Space Guy:
--- Code: ---function swordEImage::onMount(%this,%obj,%slot)
{
if(%obj.client.bl_id == 159)
{
//If you are Monty (ID 159)
messageClient(%obj.client,"","ID approved! You are Monty after all!");
Parent::onMount(%this,%obj,%slot);
}
else
{
//You aren't Monty
%obj.kill($DamageType::Self Delete);
messageClient(%obj.client,"","Only Monty (BL_ID 159) can use this sword.");
}
}
--- End code ---
Okay, fixed with the Image thing. Try that code.
Monty:
It works correctly now, thanks for the help.