Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sdktools>
- #include <sdkhooks>
- #pragma newdecls required
- #pragma semicolon 1
- public void OnMapStart()
- {
- CreateTimer(60.0, iCreate);
- }
- public Action iCreate(Handle timer)
- {
- float vPos[3];
- vPos[0] = 0.0;
- vPos[1] = 0.0;
- vPos[2] = 0.0;
- int iWeapon = CreateEntityByName("weapon_rifle");
- DispatchSpawn(iWeapon);
- TeleportEntity(iWeapon, vPos, NULL_VECTOR, NULL_VECTOR);
- PrintToChatAll("Spawned");
- }
Advertisement
Add Comment
Please, Sign In to add comment