Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Action:Command_MySlap(client, args)
- {
- new String:arg1[32], String:arg2[32]
- new damage
- /* Get the first argument */
- GetCmdArg(1, arg1, sizeof(arg1))
- /* If there are 2 or more arguments, and the second argument fetch
- * is successful, convert it to an integer.
- */
- if (args >= 2 && GetCmdArg(2, arg2, sizeof(arg2)))
- {
- damage = StringToInt(arg2)
- }
- /* Try and find a matching player */
- new target = FindTarget(client, arg1)
- if (target == -1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement