20.08.2012, 00:41
pawn Код:
CMD:coletet(playerid)
{
new Float:X, Float:Y, Float:Z;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VERMELHO, "ERRO: Vocк nгo й um adiministrador para usar esse comando.");
GetPlayerPos(playerid, X, Y, Z);
for(new x = 0; x < MAX_PLAYERS; x++) {
if(IsPlayerInRangeOfPoint(x, 50.0, X, Y, Z)) {
SetPlayerArmour(x, 100);
new nome[MAX_PLAYER_NAME], stringnome[80];
GetPlayerName(playerid, nome, sizeof(nome));
format(stringnome, sizeof(stringnome), "AdmCMD: O jogador %s deu colete a todos perto dele.",nome);
SendClientMessage(x,ROXOCLARO, stringnome);
}
}
return 1;
}