Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <sscanf2>
- #include <zcmd>
- new healthn;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- CMD:sethealth(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- if(sscanf(params,"ui", playerid, healthn)) return SendClientMessage(playerid, 0xffffffFF, "Correct usage: /sethealth <playerid> <0-100>");
- if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server");
- SetPlayerHealth(playerid, healthn);
- }
- else
- {
- SendClientMessage(playerid, 0xff0000FF, "You are not an admin.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement