Help me with admin connect -
wizzi - 21.02.2011
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_
Re: Help me with admin connect -
wizzi - 25.02.2011
cmon anyone ?
Re: Help me with admin connect -
BASITJALIL - 25.02.2011
public OnPlayerConnect(playerid)
{
Isplayer[Admin];
SendClientMessageToAll(Color_Yellow, "%s(Admin) Has joined");
return 1;
}
Re: Help me with admin connect -
wizzi - 25.02.2011
hey it will work for ladmin system ?
Re: Help me with admin connect -
Kitten - 25.02.2011
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.
Re: Help me with admin connect -
BASITJALIL - 25.02.2011
I Didn't copied god promise
I Just tried my self i m not a good script
but i just try
Re: Help me with admin connect -
Snipa - 25.02.2011
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;
}
Re: Help me with admin connect -
wizzi - 25.02.2011
yeh its good but what about the name ... (name) Then message can u help me
Re: Help me with admin connect -
wizzi - 25.02.2011
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 ?
Re: Help me with admin connect - [L3th4l] - 25.02.2011
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;