08.07.2012, 20:21
For your 1st problem check this : link1 link2
For your 2nd problem ! I tested it and it works ! I placed that it sends to only rcon admins but PM if you want it to send all level admins !
For your 2nd problem ! I tested it and it works ! I placed that it sends to only rcon admins but PM if you want it to send all level admins !
pawn Код:
COMMAND:healme(playerid, params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has just healed himself!",pName);
SetPlayerHealth(playerid, 100);
SendClientMessageToAll(COLOR_GREEN,string);
}
else
{
SetPlayerHealth(playerid, 100);
}
}
return 1;
}