RGZ Gaming Forum


 
AcasaUltimele imaginiCăutareÎnregistrareConectare

Distribuiţi|

Login/Log Out for Server

Vezi subiectul anterior Vezi subiectul urmator In jos
AutorMesaj
Agnostic
Moderator
Agnostic

Rank: Moderator
Status:
Posturi : 1146
Reputatie : 36
Data de Inscriere : 09/02/2014
Oras : RGZ City
Varsta : 25
Login/Log Out for Server  Empty
MesajSubiect: Login/Log Out for Server Login/Log Out for Server  EmptyJoi 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;
}
Sus In jos
FLEWEENTE
Moderator
FLEWEENTE

Rank: Moderator
Status:
Posturi : 537
Reputatie : 13
Data de Inscriere : 05/08/2014
Oras : ORAS RGZ
Varsta : 27
Login/Log Out for Server  Empty
MesajSubiect: Re: Login/Log Out for Server Login/Log Out for Server  EmptyDum Aug 17, 2014 8:53 am

Shocked
Sus In jos

Login/Log Out for Server

Vezi subiectul anterior Vezi subiectul urmator Sus

Subiecte similare

-
t #9 Samp/Pawno Register/Login System Part 1/2
t Cum sa ne inregistram pe un server
t CUM FACI SERVER GM-MOD
t Populare Server
t Tutoriale Creare Server SA:MP
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
RGZ Gaming Forum  :: »[RGZ] Gaming :: Gta San Andreas :: Scripturi-