Thanks for your answer!
I have no idea of SP but I tried to write a framework by using my knowledge of Java and C# and by looking at another SP script. Pretty sure I can't do much with it but I didn't know what to do instead.
I commented some questions next to the code, would be nice if somebody could answer them!
Thanks already,
hazetank
Code:
#include <sourcemod>
public OnPluginStart()
{
HookEvent("weapon_use", Event_OnWeaponUse); // how do you call this event?
}
public Event_OnWeaponUse(Handle:event, const String:name[], bool:dontBroadcast) // what to put as parameters?
{
if(usebutton_pressed != true) // how to detect button press?
return Plugin_Handled;
return Plugin_Continue;
}