[REQ] an info if player join your server
#1

Hi i want an script that

if player joins the server an junior admin up will see this message

PLAYERNAME(IPADRESS) has joined American Streets Roleplay....

like that.. thanks in advance

i need also an script..

if player register.. and if they spawn they will see this text
Welcome to American Streets Roleplay
Refund Info:
Cash= 20k
Car= 2
More


like that
Reply
#2

Код:
public OnPlayerConnect(playerid)
{
        new Country[256];
        new mess[256],IP[256];
        GetPlayerIp(playerid,IP,sizeof(IP));
        format(mess,sizeof(mess),"%s(%s) has joined American Streets Roleplay Sucks",GetPName(playerid),IP);
        printf(mess);
        SendClientMessageToAll(COLOR_JOIN,mess);
        return 1;
}
Full script with IP and Country
GEO-IP
Reply
#3

Quote:
Originally Posted by kbalor
Посмотреть сообщение
Код:
public OnPlayerConnect(playerid)
{
        new Country[256];
        new mess[256],IP[256];
        GetPlayerIp(playerid,IP,sizeof(IP));
        format(mess,sizeof(mess),"%s(%s) has joined American Streets Roleplay Sucks",GetPName(playerid),IP);
        printf(mess);
        SendClientMessageToAll(COLOR_JOIN,mess);
        return 1;
}
Full script with IP and Country
GEO-IP
Is that only see if Junior Admin?

I need also an script that when player register and if they spawn they will see this text:

Refund Info:
Test
Test
Te
st
Reply
#4

Quote:
Originally Posted by ChristianIvann09
Посмотреть сообщение
Is that only see if Junior Admin?

I need also an script that when player register and if they spawn they will see this text:

Refund Info:
Test
Test
Te
st
If you want to only junior member too see the message. It will look like this

Код:
public OnPlayerConnect(playerid)
{
       if(PlayerInfo[playerid][JuniorAdmin] >= 1)
       {
                  new Country[256];
                  new mess[256],IP[256];
                  GetPlayerIp(playerid,IP,sizeof(IP));
                  format(mess,sizeof(mess),"%s(%s) has joined American Streets Roleplay Sucks",GetPName(playerid),IP);
                  printf(mess);
                  SendClientMessageToAll(COLOR_JOIN,mess);
                  return 1;
        }
        return 1;
}
Under OnPlayerSpawn

Код:
SendClientMessage(playerid,COLOR,"Test");
SendClientMessage(playerid,COLOR,"Test");
SendClientMessage(playerid,COLOR,"TE");
SendClientMessage(playerid,COLOR,"st");
or

Код:
if(PlayerInfo[playerid][JuniorAdmin] >= 1)
{
       {
           SendClientMessage(playerid,COLOR,"Test");
           SendClientMessage(playerid,COLOR,"Test");
           SendClientMessage(playerid,COLOR,"TE");
           SendClientMessage(playerid,COLOR,"st");
       }
       return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)