View Single Post
supertimor
AlliedModders Donor
Join Date: Sep 2017
Old 12-09-2018 , 06:22   Re: Touch event for client
Reply With Quote #2

Someone? It can't be so hard to do.

// ofc i am hooking player on respawn

Code:
public Action:Event_PlayerRespawn(Handle:event, String:name[], bool:dontBroadcast)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	if(!IsValidClient(client) || !ma_klase[client])
		return Plugin_Continue;
 
	SDKHook(client, SDKHook_StartTouchPost, DotykMiny);
	PrintToChat(client, "Zahookowany przez respawn");		
	return Plugin_Continue;
}

Last edited by supertimor; 12-09-2018 at 06:26.
supertimor is offline