Advertisement
neatekFb

SourcePawn - simple command - Lesson #1

Mar 22nd, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.40 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. public OnPluginStart()
  5. {
  6.     RegAdminCmd("sm_sethp", sm_sethp, ADMFLAG_ROOT);
  7. }
  8.  
  9. public Action:sm_sethp(int client, int args)
  10. {
  11.     char arg[86];
  12.  
  13.     GetCmdArg(0, arg, sizeof(arg));
  14.     PrintToChatAll(arg);
  15.  
  16.     GetCmdArg(1, arg, sizeof(arg));
  17.     PrintToChatAll(arg);
  18.  
  19.     GetCmdArg(2, arg, sizeof(arg));
  20.     PrintToChatAll(arg);
  21.  
  22.     SetEntityHealth(client, 1);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement