Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include sdktools
- #define m_g "models/props_junk/gascan001a.mdl"
- public OnPluginStart()
- {
- RegConsoleCmd("sm_g", gascan);
- }
- public Action:gascan(i, args)
- {
- CreateGascan(i);
- }
- public CreateGascan(client)
- {
- new entity = CreateEntityByName("prop_physics");
- decl Float:f_or[3], Float:f_ang[3];
- GetClientAbsOrigin(client, f_or);
- GetClientAbsAngles(client, f_ang);
- f_or[2] += 63;
- f_or[0] -= 15;
- TeleportEntity(entity, f_or, f_ang, NULL_VECTOR);
- ActivateEntity(entity);
- SetEntityModel(entity, m_g)
- SetVariantString("!activator");
- AcceptEntityInput(entity, "SetParent", client);
- SetVariantString("medkit");
- AcceptEntityInput(entity, "SetParentAttachment", entity);
- AcceptEntityInput(entity, "TurnOn");
- }
Advertisement
Add Comment
Please, Sign In to add comment