Rank: Moderator Status: Posturi : 1146 Reputatie : 36 Data de Inscriere : 09/02/2014 Oras : RGZ City Varsta : 25
| Subiect: Login/Log Out for Server Joi Iul 31, 2014 11:57 am |
|
| Salut din plictiseala am facut un sitem de mesaje care arata cand cineva intra pe server sau iese de pe server... Acest script arata cine intra pe server si cine iese + motivul . - Cod:
-
// // ***************************** //Un Script de plictiseala #define FILTERSCRIPT #include <a_samp> #define green 0x33AA33AA #define red 0xAA3333AA public OnPlayerConnect(playerid) { new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); new plrIP[16]; GetPlayerIp(playerid, plrIP, sizeof(plrIP)); format(string,sizeof string,"%s has joined the server - %s!",pName,plrIP); SendClientMessageToAll(green,string); new string1[64], pName1[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName1,MAX_PLAYER_NAME); format(string1,sizeof string1,"Welcome %s!",pName); GameTextForPlayer(playerid, string1, 5000, 3); return 1; } public OnPlayerDisconnect(playerid, reason) { new string[64], name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); switch(reason) { case 0: format(string,sizeof string,"%s a parasit serverul Sa:Mp.Ro. (Timed out)",name); case 1: format(string,sizeof string,"%s a parasit serverul Sa:Mp.Ro. (Leaving)",name); case 2: format(string,sizeof string,"%s a parasit serverul Sa:Mp.Ro. (Kicked/Banned)",name); } SendClientMessageToAll(red, string); return 1; } |
|
Rank: Moderator Status: Posturi : 537 Reputatie : 13 Data de Inscriere : 05/08/2014 Oras : ORAS RGZ Varsta : 27
| Subiect: Re: Login/Log Out for Server Dum Aug 17, 2014 8:53 am |
|
| |
|