[pawn]new Heal[MAX_PLAYERS];[/pawn]
[pawn] else if ( strcmp( cmd, "!heal", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
SendClientMessage(playerid,0x333AFFF,"Healing in 5 seconds for prevent death-evade.");
SetTimer( "Healing", 5000,false);
Heal[playerid] = 1;
return 1;
}[/pawn]
[pawn]//==============================================================================
public Healing() {
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
if(Heal == 1) {
GameTextForPlayer(i,"Healed");
SetPlayerHealth(i,100);
Heal = 0;
}
}
}
}
//==============================================================================[/pawn]