rcon admin and admin help please! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: rcon admin and admin help please! (
/showthread.php?tid=66529)
rcon admin and admin help please! -
Zack9764 - 22.02.2009
I'm trying to make it when a player logs into /rcon they automatically get level 1337 admin. What's the code? and do I put it under public OnPlayerSpawn?
Re: rcon admin and admin help please! -
Backwardsman97 - 22.02.2009
What mode are you using..
Re: rcon admin and admin help please! -
Zack9764 - 22.02.2009
Godfather edit
Re: rcon admin and admin help please! -
Sandra18[NL] - 22.02.2009
Код:
new IsRconAdmin[MAX_PLAYERS];
Код:
public OnGameModeInit()
{
SetTimer("AdminCheck", 1000, 1);
return 1;
}
Код:
public OnPlayerConnect(playerid)
{
IsRconAdmin[playerid] = 0;
return 1;
}
Код:
forward AdminCheck();
public AdminCheck()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i) && IsRconAdmin[i] == 0)
{
IsRconAdmin[i] = 1;
OnPlayerRconLogin(i);
}
}
}
forward OnPlayerRconLogin(playerid);
public OnPlayerRconLogin(playerid)
{
SendClientMessage(playerid, 0xFFFF00AA, "You logged in as rcon Admin!");
//adminlevel[playerid] == 1337;
return 1;
}
Re: rcon admin and admin help please! -
Zack9764 - 22.02.2009
Looks good and all but when I try to compile the compiler crashes but the box stays up but no message comes up.