Help me with admin connect
#1

I use ladmin system ,
i want put when admin *( admin level 2,3,4,5 )* join the server to says
Код:
(name) has signed as Admin
and make his name color i want
about admin level 1 i want to show
Код:
(name) has signed as V.I.P
and make his name color i want
Please help me , Thankss
_wizzi_
Reply
#2

cmon anyone ?
Reply
#3

public OnPlayerConnect(playerid)
{
Isplayer[Admin];
SendClientMessageToAll(Color_Yellow, "%s(Admin) Has joined");
return 1;
}
Reply
#4

hey it will work for ladmin system ?
Reply
#5

Quote:
Originally Posted by BASITJALIL
Посмотреть сообщение
public OnPlayerConnect(playerid)
{
Isplayer[Admin];
SendClientMessageToAll(Color_Yellow, "%s(Admin) Has joined");
return 1;
}
Total fail Copyed off a script lol.^.^

anyways check your ladmin script i never used it but it should have like if(adminlevel blah blah
for example im going to use rcon admins
Check IsPlayerAdmin
https://sampwiki.blast.hk/wiki/IsPlayerAdmin

do not want to spam but



Quote:
Originally Posted by BASITJALIL
Посмотреть сообщение
I Didn't copied god promise
I Just tried my self i m not a good script
but i just try
what is the isplayer[admin] seems like you copyed it off some where.
Reply
#6

I Didn't copied god promise
I Just tried my self i m not a good script
but i just try
Reply
#7

pawn Код:
public OnPlayerConnect(playerid)
{
    new n[MAX_PLAYERS], string[256]; //New variables
    GetPlayerName(playerid,name,sizeof(name)); //Gets the name + string
    format(string,sizeof(string),"%s has signed as Admin",name); // formats the string
    if(PlayerInfo[playerid][Level] >= 2) { //If player's level is 2+
        SendClientMessageToAll(0x33FF33AA, string);//It will send the message above
    }
    return 1;
}
Reply
#8

yeh its good but what about the name ... (name) Then message can u help me
Reply
#9

Quote:
Originally Posted by Snipa
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    new n[MAX_PLAYERS], string[256]; //New variables
    GetPlayerName(playerid,name,sizeof(name)); //Gets the name + string
    format(string,sizeof(string),"%s has signed as Admin",name); // formats the string
    if(PlayerInfo[playerid][Level] >= 2) { //If player's level is 2+
        SendClientMessageToAll(0x33FF33AA, string);//It will send the message above
    }
    return 1;
}
man u are pro , it works perfectly but what about for Admin level 1 to show logged as V.I.P ... can u help ?
Reply
#10

pawn Код:
public OnPlayerConnect(playerid)
{
    new
        iName[MAX_PLAYER_NAME],
        iStr[60];

    GetPlayerName(playerid, iName, sizeof(iName));
   
    if(PlayerInfo[playerid][Level] == 1)
    {
        format(iStr, sizeof(iStr), "Player: %s has logged in as V.I.P!", iName);
    }
    else format(iStr, sizeof(iStr), "Player: %s has logged in. Level: %i", iName, PlayerInfo[playerid][Level]);
 
    SendClientMessageToAll(0x33FF33AA, iStr);
    return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)