View Single Post
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 06-05-2011 , 14:35   Re: Use Entities in Code
Reply With Quote #3

Code:
public OnClientPutInServer(id) {     SDKHook(id, SDKHook_StartTouch, Start_Touch); } //Toucher/Touched object //Toucher should always be player.. public Action:Start_Touch(e1, e2) {     decl String:tn2[128];        decl String:cn2[128];         GetEdictClassname(e2, cn2, sizeof(cn2));     GetEntPropString(e2, Prop_Data, "m_iName", tn2, sizeof(tn2));         if(StrEqual(cn2,"func_door",false) || StrEqual(cn2,"func_door_rotating",false))     {         PrintToChatAll("(%s/%s)",cn2,tn2);         ActivateEntity(e2);     } }
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4