FlacoBey

Untitled

Jun 5th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <sdktools>
  2. #include <sdkhooks>
  3.  
  4. #pragma newdecls required
  5. #pragma semicolon 1
  6.  
  7. public void OnMapStart()
  8. {
  9.     CreateTimer(60.0, iCreate);
  10. }
  11.  
  12. public Action iCreate(Handle timer)
  13. {
  14.     float vPos[3];
  15.     vPos[0] = 0.0;
  16.     vPos[1] = 0.0;
  17.     vPos[2] = 0.0;
  18.     int iWeapon = CreateEntityByName("weapon_rifle");
  19.     DispatchSpawn(iWeapon);
  20.     TeleportEntity(iWeapon, vPos, NULL_VECTOR, NULL_VECTOR);
  21.     PrintToChatAll("Spawned");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment