28.05.2015, 21:04
Troque este:
Por:
PHP код:
SendClientMessageToAll(cor_azulzin, string);
PHP код:
SendClientMessage(x, cor_azulzin, string);
PHP код:
CMD:armour(playerid)
{
if(armourc[playerid] == 1) return SendClientMessage(playerid, -1,"Vocк tem que esperar 240 segundos para poder usar o comando novamente!");
if(RankClasse[playerid] == 4)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(IsPlayerInRangeOfPoint(x, 10.0, X, Y, Z))
{
if(IsPlayerConnected(x) && GetPlayerTeam(x) == GetPlayerTeam(playerid))
SetPlayerArmour(x, 100);
new name[MAX_PLAYER_NAME], string[300];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "- O Suporte '%s' restaurou seu Armour!",name);
SendClientMessage(x, cor_azulzin, string);
armourc[playerid] = 1;
SetTimerEx("tarmourc",240000,0, "i", playerid);
}
}
}
return 1;
}