When player login - 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: When player login (
/showthread.php?tid=330689)
When player login -
rashier - 02.04.2012
Hi,i need a little script with:
When the other player enter to server,admins recevied a mesages like this :
Player XXXXXX enter to server...
Thanks.Sorry for my bad english.
Re: When player login -
blank. - 02.04.2012
Код:
public OnPlayerConnect(playerid)
{
new name[MAX_PLAYER_NAME],output[49]
format(output,sizeof(output),"Player %s has joined the server!",name);
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(IsPlayerAdmin(i) && IsPlayerConnected(i))
{
SendClientMessage(i,0xFFFFFFFF,output);
}
}
return 1;
}
Will send a message to RCon admins when a player joins the server.
Re: When player login -
rashier - 02.04.2012
it is for all admins?
Re: When player login -
blank. - 02.04.2012
Quote:
Originally Posted by rashier
it is for all admins?
|
It is valid for RCon admins, admins who identified via /rcon login.
If you have a custom script running you need to pair it with the admin value and/or function.
Re: When player login -
rashier - 02.04.2012
ok,thanks...i tested it.