Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3. #include <TF2_stocks>
  4.  
  5. public Plugin:myinfo = {
  6. name = "T-pose",
  7. author = "Fuffeh",
  8. description = "",
  9. version = "1.0",
  10. url = ""
  11. };
  12.  
  13. public OnPluginStart(){
  14. RegConsoleCmd("sm_tpose", Command_tpose, "Strip all weapons");
  15. }
  16.  
  17. public Action:Command_tpose(client, args)
  18. {
  19. if(IsPlayerAlive(client)){
  20. TF2_RemoveAllWeapons(client);
  21. PrintToChat(client, "[SM] Stripped all weapons.");
  22. }
  23. else
  24. {
  25. PrintToChat(client, "[SM] Player has to be alive.");
  26. }
  27. return Plugin_Handled;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement