07.03.2011, 20:46
Hola, tengo un Gamemode Godfather y estuve buscando por la wiki del samp, para que salga en el chat cuando un jugador se desconecte, indicando si fue por su propia cuenta, por problemas tйcnicos, o kickeado.
Puse como me decнa en OnPlayerDisconnect pero no tuvo caso, hice lo posible y no pude, hasta ahora quedу asн, y todavнa no me funciona:
Puse como me decнa en OnPlayerDisconnect pero no tuvo caso, hice lo posible y no pude, hasta ahora quedу asн, y todavнa no me funciona:
Код:
new reason; new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); switch(reason) { case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pname); case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pname); case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pname); } ProxDetector(30.0, playerid, string, COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE,COLOR_ORANGE); printf("%s", string);