13.11.2018, 13:56
PHP код:
player_IsConnected(playername[]) {
static string[25], i;
for(i = GetMaxPlayers() - 1; i > -1; --i) {
if(IsPlayerConnected(i)) {
GetPlayerName(i, string, sizeof string);
if(!strcmp(playername, string, false)) {
return true;
}
}
}
return false;
}
if(player_IsConnected(InfoOrg[9][Lider])) {
//online
}
else {
//ofline
}