PHP Code:
function onActionServerside( cmd, dx, dy, wep )
{
switch ( cmd )
{
case "dropWep":
{
for(temp.i=0;temp.i<player.weapons.size();temp.i++;)
{
if(player.weapons[temp.i].name == wep)
{
this.wepID = temp.i;
break;
}
}
removeweapon(wep);
temp.i = putnpc2( dx, dy, "" );
temp.i.join("object_droppeditem");
temp.i.wep = wep;
temp.i.img = player.weapons[this.wepID].image;
}
}
}
Why is it giving me the wrong images?