Hello , I want my players to hit the set of objects to work.
But it is not working.
Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
public OnClientPutInServer(Client)
{
new String:class[32];
GetEdictClassname(Client, class, 32);
if(StrContains(class, "models/props_interiors/dining_table_round.mdl", false) != -1
|| StrContains(class, "models/props_fairgrounds/amp_plexi.mdl", false) != -1 )
{
SDKHook(Client, SDKHook_Touch, Start_Touch);
}
}
public Start_Touch(client, other)
{
if(!IsClientInGame(other))return;
PrintToChatAll("TEST");
}
If you can help me thank you very much !!!
Although my English is not very good.