'toweapons' is bad with an NPC server...
Make sure your MP is set at 99 and try.
Also:
PHP Code:
if(isweapon){
if (strequals(#w,Lightning 2)){
if (weaponfired && playermp>4 || mousedown && playermp>4){
set shooting;
timeout=.05;
}
}
}
Having 'isweapon' and 'strequals(#w,Lightning2)' is redundant.
I would try instead:
PHP Code:
if (weaponfired || (mousedown && isweapon)) {
if (playermp > 4) {
//stuff
}
}
I would also test this weapon on a level that is not on a gmap, as putexplosion2 coordinates often have to be adjusted if you are on a gmap.