PHP Code:
public Use_Button(id) //Function when you press 'E' or the USE key
{
if(is_user_connected(id))
if(pev(id,pev_button) & IN_USE) //Checks if you pressed the USE key
Take_C4(id); //Calls function to take C4
}
>>>
PHP Code:
public Use_Button(id) //Function when you press 'E' or the USE key
{
if(is_user_alive(id))
if(pev(id,pev_button) & IN_USE) //Checks if you pressed the USE key
Take_C4(id); //Calls function to take C4
}
or dead players may get the c4 lol.
__________________