22.09.2014, 23:15
Hey!
Here is a stock function of IsPlayerNameOnline
But i want to make it vice versa "IsPlayerNameOffline"
What would be the code, please help
Here is a stock function of IsPlayerNameOnline
pawn Код:
stock IsPlayerNameOnline(compname[]){
new playername[MAX_PLAYER_NAME];
for(new i=0;i<=MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)) {
GetPlayerName(i, playername, sizeof(playername));
if(strcmp(playername,compname,false) == 0) {
return i;}}}
return 1000;}
What would be the code, please help