23.01.2014, 00:42
can somebody tell me how to make this work ? it doesn't sent the message and i want it to make the command works faster instead of (/heal [playerid])
pawn Код:
CMD:heal(playerid, params[])
{
if(PlayerTeam[playerid] == TEAM_MEDIC)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && i != playerid)
{
if(GetDistanceBetweenPlayers(playerid,i) > AVAILABLE_DISTANCE) return SendClientMessage(playerid, COLOR_WHITE, "{FF0000}Error: {FFFFFF}There are no players close enough to heal.");
}
}
}