Advertisement
Guest User

cmds.pwn - Pawno

a guest
Apr 15th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #include <a_samp>
  2. #include <sscanf2>
  3. #include <zcmd>
  4.  
  5. new healthn;
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n--------------------------------------");
  10. print(" Blank Filterscript by your name here");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. CMD:sethealth(playerid, params[])
  16. {
  17. if(IsPlayerAdmin(playerid))
  18. {
  19. if(sscanf(params,"ui", playerid, healthn)) return SendClientMessage(playerid, 0xffffffFF, "Correct usage: /sethealth <playerid> <0-100>");
  20. if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server");
  21. SetPlayerHealth(playerid, healthn);
  22. }
  23. else
  24. {
  25. SendClientMessage(playerid, 0xff0000FF, "You are not an admin.");
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement