Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public Action:Command_MySlap(client, args)
  2. {
  3. new String:arg1[32], String:arg2[32]
  4. new damage
  5.  
  6. /* Get the first argument */
  7. GetCmdArg(1, arg1, sizeof(arg1))
  8.  
  9. /* If there are 2 or more arguments, and the second argument fetch
  10. * is successful, convert it to an integer.
  11. */
  12. if (args >= 2 && GetCmdArg(2, arg2, sizeof(arg2)))
  13. {
  14. damage = StringToInt(arg2)
  15. }
  16.  
  17. /* Try and find a matching player */
  18. new target = FindTarget(client, arg1)
  19. if (target == -1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement