try if(gunimage.projectile $= "gunprojectile")
if i was at home i'd quickly fix this
haha, well i appreaciate your help.
my script now looks like this:
function servercmdresetgun(%client)
{
if(GunImage.projectile $= "GunProjectile")
{
%client.chatmessage("\c6Gun has already \c3reset\c6.");
}
else
{
gunimage.projectile = gunprojectile;
%client.chatmessage("\c6Gun \c3reset\c6.");
}
}
function servercmdrocketgun(%client)
{
if(gunimage.projectile $= "rocketlauncherprojectile")
{
%client.chatmessage("\c6Rocket projectiles are alredy \c3activated\c6.");
}
else
{
gunimage.projectile = rocketlauncherprojectile;
%client.chatmessage("\c6Rocket projectiles \c3ACTIVATED\c6!");
}
}
and its still doign the same thing :/