29.04.2012, 07:19
I want /giveallscore cmd. I don't have it in admin script. Please can any one make for me>??
I have sample:
I have sample:
pawn Код:
dcmd_armourall(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 3)
{
SendCommandToAdmins(playerid,"ArmourAll");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && (i != playerid) && i != ServerInfo[MaxAdminLevel])
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
SetPlayerArmour(i,100.0);
}
}
new string[128];
format(string,sizeof(string),"|- Administrator \"%s\" has Restored all players armour -|", pName(playerid));
return SendClientMessageToAll(blue, string);
}
else return ErrorMessages(playerid, 6);
}