Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:checkhp(playerid, params[])
- {
- if (!gAuthorize[playerid]) SendClientMessage(playerid, -1, " *Вторичную авторизацию пройди.");
- else
- {
- if(!sscanf(params, "u", params[0]))
- {
- if (IsPlayerConnected(params[0]) && PlayerInfo[playerid][pAdmin] > 0)
- {
- new Float: health; new msg[128];
- GetPlayerHealth(params[0], health);
- format(msg, sizeof(msg), " *checkhp: %i health %0.1f vs. %0.1f", health, GetPVarFloat(params[0], "H"));
- SendClientMessage(playerid, -1, msg);
- }
- }
- else SendClientMessage(playerid, -1, " *Юзай /checkhp [user]");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement