new Float:origins[3] GetEntPropVector(client, Prop_Send, "m_vecOrigin", origins); new ent = CreateEntityByName("przedmiot"); SetEntityModel(ent, "models/prezent.mdl"); origins[0]+=40.0 origins[2]-=32.0 SetEntPropVector( ent, Prop_Send, "m_vecOrigin", origins); new Float:minbounds[3] = {-1.1, -1.1, -1.1}; new Float:maxbounds[3] = {1.1, 1.1, 1.1}; SetEntPropVector(ent, Prop_Send, "m_vecMins", minbounds); SetEntPropVector(ent, Prop_Send, "m_vecMaxs", maxbounds); SetEntProp(ent, Prop_Send, "m_nSolidType", 2); SetEntityMoveType(ent, MOVETYPE_FLY); DispatchSpawn(ent); SDKHook(ent, SDKHook_StartTouch, OnTouchesTestHook);
Nie tworzy bytu,a w konsoli serwera pojawia się to: