30.01.2013, 23:46
(
Последний раз редактировалось NuTShoT; 02.02.2013 в 00:08.
)
@RESOLVIDO +rep A TODOS
new aloka2 = PlayerInfo[i][pJailed] > 0;
new aloka3 = PlayerInfo[i][pTempoHospitalizado] > 0;
new aloka = aloka2 || admtrampando[i] || aloka3;
public checarlife() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pJailed] > 0 && gPlayerLogged[i] == 1||PlayerInfo[i][pTempoHospitalizado] > 0&&gPlayerLogged[i] == 1) { SetPlayerHealth(i, 999999999); } } } return true; }
Код:
public checarlife() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pJailed] > 0 && gPlayerLogged[i] == 1||PlayerInfo[i][pTempoHospitalizado] > 0&&gPlayerLogged[i] == 1) { SetPlayerHealth(i, 999999999); } } } return true; } |
public checarlife()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gPlayerLogged[i] == 1 && ( PlayerInfo[i][pTempoHospitalizado] > 0 || PlayerInfo[i][pJailed] > 0 ))
{
SetPlayerHealth(i, cellmax);
}
}
}
return true;
}
Para que complicar o que й fбcil?
pawn Код:
|