Admin connecT (!) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin connecT (!) (
/showthread.php?tid=359435)
Admin connecT (!) -
MrCripBloodz - 14.07.2012
Hello Everyone how do i make this in luxadmin system that when player connect to the server after he loged in show all message :
PHP код:
(Name_here) %ID has logged in to server as owner
Something like this guys
Can anyone please tell me how do i make it
Thank you (!)
Re: Admin connecT (!) -
Dubya - 14.07.2012
pawn Код:
OnPlayerConnect(playerid)
{
new string[128];
if(ADMINVARIABLE[playerid] == OWNER LEVEL)
{
format(string, sizeof(string), "%s has connected as an Owner.", USERNAMEVARIABLE(playerid));
SendClientMessageToAl(CHOOSE A COLOR, string);
}
return 1;
}
Re: Admin connecT (!) -
MrCripBloodz - 14.07.2012
NOT WORK .-.
Re: Admin connecT (!) -
Captain_Mani - 14.07.2012
Код:
OnPlayerConnect(playerid)
{
new string[128];
if(ADMINVARIABLE[playerid] == LEVEL 5)
{
format(string, sizeof(string), "%s has connected as an Owner.", USERNAMEVARIABLE(playerid));
SendClientMessageToAl(CHOOSE A COLOR, string);
}
return 1;
}
Re: Admin connecT (!) -
JaKe Elite - 14.07.2012
or maybe.
use strfind or strcmp to detect the owner name.
I use to do that to detect my name as owner.
Re: Admin connecT (!) -
Neil. - 14.07.2012
PHP код:
OnPlayerConnect(playerid)
{
new string[128];
new adminname[MAX_PLAYER_NAME];
if(AccInfo[playerid][Level] >= 1)//lux admin variable
{
format(string, sizeof(string), "%s has connected as an Owner.", adminname);
SendClientMessageToAll(0xFF9900FF, string);
}
return 1;
}
Re: Admin connecT (!) -
clarencecuzz - 14.07.2012
pawn Код:
public OnPlayerConnect(playerid)
{
new string[128];
new playern[MAX_PLAYER_NAME];
GetPlayerName(playerid, playern, MAX_PLAYER_NAME);
if(dUserINT(playern)).("Level") >= 5)
{
format(string,sizeof(string),"%s (ID: %d) has connected to the server as an Owner.", playern, playerid);
SendClientMessageToAll(0x00FF00FF, string);
}
return 1;
}
The player is not set as level 5 until they log in, so we use dUserINT to detect if the player's user file returns 5.