//----------------------
#include <a_samp>
#include <IsPlayerLAdmin>
//----------------------
#define COLOR_RED 0xFF0000FF
#define COLOR_GREEN 0x008000FF
#define COLOR_YELLOW 0xFFFF00FF
//----------------------
new Text3D: ASZ;
new bool: Adminszolgalat[MAX_PLAYERS];
//----------------------
public OnFilterScriptInit() {print(\"Sheet adminszolgálat betöltve!\"); return 1;}
public OnFilterScriptExit() {print(\"Sheet adminszolgálat kikapcsolva!\"); return 1;}
public OnPlayerCommandText(playerid, cmdtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if (strcmp(\"/aduty\", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerLAdmin(playerid))
{
if(Adminszolgalat[playerid] == false)
{
ASZ = Create3DTextLabel(\"Admin Szolgálatban\", COLOR_RED, 0.0, 0.0, 2.0, 40, 0, 0);
Attach3DTextLabelToPlayer(ASZ, playerid, 0.0, 0.0, 0.4);
ShowNameTags( 0 );
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\");
format(string, sizeof(string), \"Admin %s szolgálatba lépett!\", sendername);
SendClientMessageToAll(COLOR_YELLOW,string);
SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\");
SetPlayerSkin(playerid, 217);
Adminszolgalat[playerid] = true;
SetPlayerHealth(playerid, 1000);
}
else if(Adminszolgalat[playerid] == true)
{
Delete3DTextLabel(ASZ);
ShowNameTags( 1 );
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\");
format(string, sizeof(string), \"Admin %s kilépett a szolgálatból!\", sendername);
SendClientMessageToAll(COLOR_YELLOW,string);
SendClientMessageToAll(COLOR_GREEN, \"-------------------------------\");
Adminszolgalat[playerid] = false;
SetPlayerHealth(playerid, 100);
}
}
else return SendClientMessage(playerid, COLOR_RED, \"Nem vagy Admin!\");
}
return 1;
}
return 0;
}
Sheet adminisztrációs rendszere.. egy kicsit bele írtam 2 - 3 sort..