SA-MP Forums Archive
How to be an admin on my server ???? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How to be an admin on my server ???? (/showthread.php?tid=234319)

Pages: 1 2


Re: How to be an admin on my server ???? - aceisnice - 04.03.2011

Just get Lux Admin Or Lethal Admin, Best ones


Re: How to be an admin on my server ???? - zach121212 - 19.03.2011

hey um i have vortex how do i make my self level 6 becuz when i look on thost files with my account its not there


Re: How to be an admin on my server ???? - alpha500delta - 20.03.2011

Ask in the release topic...


Re: How to be an admin on my server ???? - [SFA]SpiRRiT - 20.03.2011

Quote:
Originally Posted by zach121212
View Post
hey um i have vortex how do i make my self level 6 becuz when i look on thost files with my account its not there
Did you even register? If you registered there should be a file of you.. Then when your NOT in-game you should edit you file, and put, "adminlevel: 6" or something, I don't know what it says..


Re: How to be an admin on my server ???? - [SFA]SpiRRiT - 20.03.2011

Quote:
Originally Posted by Achraf_Be
View Post
yeah you must register and you will see your file edite it

adminlevel=0
adminlevel=6
That's what I'm trying to say xD


Re: How to be an admin on my server ???? - Dark_Thunder - 22.03.2011

it is the most newbieness question

anywayz dont ask me the meaning of newbieness


Re: How to be an admin on my server ???? - alpha500delta - 22.03.2011

Quote:
Originally Posted by Dark_Thunder
View Post
it is the most newbieness question

anywayz dont ask me the meaning of newbieness
The meaning is you, that useless comment D:


Re: How to be an admin on my server ???? - [ProX]BlueFire - 25.03.2011

Quote:
Originally Posted by [BG]DOOM
Посмотреть сообщение
Raptor admin script ..Actually i can kick and ban from console but not from game like /kick or /ban and how i can make someone admin ?
kick/kick [id] [reason])
Код:
COMMAND:kick(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid,color_red,"You have no permission to use this command!");
	new id,reason[64];
	if(sscanf(params,"i",id)) return SendClientMessage(playerid,color_red,"USAGE: /kick [id] [reason]");
    sscanf(params,"is[64]",id,reason);
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,color_red,"Player not connected.");
	if(!strlen(reason))
	{
	    SendClientMessageToAllEx(color_blue,"sssss","***Administrator ",PlayerInfo[playerid][Username],"{FFFFFF} kicked ",PlayerInfo[id][Username],".");
	} else {
	    SendClientMessageToAllEx(color_blue,"sssssss","***Administrator ",PlayerInfo[playerid][Username],"{FFFFFF} kicked ",PlayerInfo[id][Username]," Reason:",reason,".");
	}
	return Kick(id);
}
ban/ban [id] [reason])
Код:
COMMAND:ban(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 2) return SendClientMessage(playerid,color_red,"You have no permission to use this command!");
	new id,reason[64];
	if(sscanf(params,"i",id)) return SendClientMessage(playerid,color_red,"USAGE: /ban [id] [reason]");
    sscanf(params,"is[64]",id,reason);
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,color_red,"Player not connected.");
	if(!strlen(reason))
	{
	    SendClientMessageToAllEx(color_blue,"sssss","***Administrator ",PlayerInfo[playerid][Username],"{FFFFFF} banned ",PlayerInfo[id][Username],".");
	} else {
	    SendClientMessageToAllEx(color_blue,"sssssss","***Administrator ",PlayerInfo[playerid][Username],"{FFFFFF} banned ",PlayerInfo[id][Username]," Reason:",reason,".");
	}
	return Ban(id);
}
setlevel/setlevel [id] [reason])
Код:
COMMAND:setlevel(playerid,params[])
{
    if(PlayerInfo[playerid][Level] < 3&& !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,color_red,"You have no permission to use this command!");
	new id,level;if(sscanf(params,"ii",id,level)) return SendClientMessage(playerid,color_red,"USAGE: /setlevel [playerid] [level 0/3]");
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid,color_red,"Player not connected.");
	if(level > 3) return SendClientMessage(playerid,color_red,"Error! You can only pick between level 0/3 (0: Player - 1: Moderator - 2: Administrator - 3: Owner)");
	if(PlayerInfo[id][Level] < level)
	{
		PlayerInfo[id][Level] = level;
		SendClientMessageEx(playerid,color_green,"sssis","You have promoted ",PlayerInfo[id][Username]," succesfully to level ",level,".");
		SendClientMessageEx(id,color_green,"sis","Congratulations! You have been promoted to level ",level,".");
	} else {
		PlayerInfo[id][Level] = level;
		SendClientMessageEx(playerid,color_green,"sssis","You have demoted ",PlayerInfo[id][Username]," succesfully to level ",level,".");
		SendClientMessageEx(id,color_green,"sis","You have been demoted to level ",level,".");
	}
	SaveUser(id);
	return 1;
}
dont forget to put this on:
Код:
#include <zcmd>
here
have fun!
(if u will get any error,let me know...)