SA-MP Forums Archive
Rank system - 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: Rank system (/showthread.php?tid=436343)



Rank system - Excelize - 11.05.2013

Hey SAMPheads

For my server I need a system to detect if a player logs in, like if I log on to my server it would say something like (Server Owner)Excelize has logged into xxxxx
Also for admins it would be like Administrator xxxx has logged in to xxxx
Sadly I cannot come to an idea of how to make this.. Could someone help me? I will give rep..
Thank you a lot


Re: Rank system - _chimera_ - 11.05.2013

Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerAdmin(playerid))
{
new name[MAX_PLAYER_NAME];
new string[218];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Admin %s connected!!", name);
SendClientMessageToAll(-1, string);
}
return 1;
}
Quote:

Darт rep ..

you do not have 50 posts


Re: Rank system - Excelize - 11.05.2013

Oh thank you, and sorry then, I don't know much about this forum..
Thank you and sorry for the inconvenience!


Re: Rank system - _chimera_ - 11.05.2013

controls better .. I made a mistake and now correct!


Quote:

Oh, grazie, e scusa allora, non so molto su questo forum ..
Grazie e scusate per l'inconveniente!

quiet