07.02.2013, 15:46
Isso,
pawn Код:
healtPlayer(); public healtPlayer(){
static Float: pHealth[ MAX_PLAYERS ];
static Int, MaxP;
for(Int = 0, MaxP = GetMaxPlayers(); Int != MaxP; ++Int){
if(IsPlayerConnected(Int)){
GetPlayerHealth(Int, pHealth[Int]);
if(pHealth[Int] < 100){
SetPlayerHealth(Int, 5.0);
}
}
}
return true;
}