RGZ Gaming Forum


 
AcasaCalendarFAQCautareMembriGrupuriInregistrareConectare

Distribuiţi|

Login/Log Out for Server

Vezi subiectul anterior Vezi subiectul urmator In jos
AutorMesaj
Moderator
avatar

Rank: Moderator
Status:
Posturi : 1146
Reputatie : 36
Data de Inscriere : 09/02/2014
Oras : RGZ City
Varsta : 18
MesajSubiect: 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;
}


MANAGER ROMANIAGAMING ZONE
Contact:

  • Yahoo ID: dutaduta24
  • Skype: DragosNecula
  • STEAM: iphon24_eu








© Copyright by RGZ-Agnostic 2014 - All rights reserved.
Sus In jos
Vezi profilul utilizatorului
Moderator
avatar

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

Shocked




Sus In jos
Vezi profilul utilizatorului

Login/Log Out for Server

Vezi subiectul anterior Vezi subiectul urmator Sus

Subiecte similare

-
t HostName: Samp.Just2Play.Ro | Roleplay Server [0.3c]
t *FiveTime* IP: 188.212.105.203 Contact id: samp_florin Server De samp nou deschis Si dam level bani Super server:X Va asteptam i pe dumneavoastra Dati click sa vedeti srv:Xpoze
t HostName: FlyGaming RPG [0.3x] Server ON! Address: 93.119.26.209:7777 Players: 54 / 100 Ping: 56 Mode: FlyGaming RPG V0.1 Map: Los Santos HostName: FlyGaming RPG [0.3x] Server ON! Address: 93.119.26.209:7777 Players: 54 / 100 Ping: 56
t Partener Server
t Toxic RPG | Romania [0.3x]
Pagina 1 din 1

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