I need
#1

Hello boys and girls.
I need a basic roleplay script who includes admin system,with lot of commands.
Reply
#2

I've got a lot of admin cmds, although I don't have a saving system lol .
But if you're interested in the cmds, I can send it.
Reply
#3

Quote:
Originally Posted by saffierr
Посмотреть сообщение
I've got a lot of admin cmds, although I don't have a saving system lol .
But if you're interested in the cmds, I can send it.
Ok send to me the commands.But are they in a gamemode ?
Reply
#4

uhm, yeah in my gamemode lol... not downloaded or anything, just scripted it.

I'll PM it you in a min
Reply
#5

Oh.. it's not possible through PM .. since it contains very much
Reply
#6

Can you upload it to megaupload or other site like this please ?
Reply
#7

PHP код:
CMD:asay(playeridparams[])
{
    if(
PlayerInfo[playerid][AdminLevel] < 1) return 0;
    new  
message[150];
    if(
sscanf(params"s[150]"message)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /asay [message]");
    
format(messagesizeof message"~Admin~ %s"message);
    
SendClientMessageToAll(COLOR_FLBLUEmessage);
       return 
1;
}

CMD:ann(playeridparams[])
{
    if(
PlayerInfo[playerid][AdminLevel] < 1) return 0;
    new 
message[150];
     if(
sscanf(params"s[150]"message)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /ann [message]");
    
format(messagesizeof message"%s"message);
    
GameTextForAll(message50003);
    return 
1;
}

CMD:kick(playeridparams[])
{
    if(
PlayerInfo[playerid][AdminLevel] < 1) return 0;
       new 
targetplayerreason[50];
    if(
sscanf(params"u"targetplayer)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /kick [ID] (Reason)");
    
sscanf(params"us[50]"targetplayerreason);
    if(!
IsPlayerConnected(targetplayer)) return SendClientMessage(playeridCOLOR_RED"Error: Player is not connected!");
    
    if(
targetplayer == playerid)
    return 
SendClientMessage(playeridCOLOR_RED"Error: You cannot kick yourself!");

    new 
string[150], pName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
GetPlayerName(targetplayerpName2MAX_PLAYER_NAME);
    
format(stringsizeof string"~ %s has been kicked from the server for '%s'"pNamereason);
    
SetTimerEx("DelayedKick"50false"i"targetplayer);
       
printf("[KICK] %s has kicked %s from the server"pNamepName2);
    
SendClientMessageToAll(COLOR_REDstring);
       return 
1;
}
forward DelayedKick(playerid);
public 
DelayedKick(playeridKick(playerid); 
PHP код:
CMD:goto(playeridparams[])
{
    if(
PlayerInfo[playerid][AdminLevel] < 1) return 0;
    new 
targetplayer;
    if(
sscanf(params"u"targetplayer)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /goto [ID]");
    if(!
IsPlayerConnected(targetplayer)) return SendClientMessage(playeridCOLOR_RED"Error: Player is not connected!");

    if(
targetplayer == playerid)
    return 
SendClientMessage(playeridCOLOR_RED"Error: You cannot teleport to yourself!");

    new 
string[100], Float:XFloat:YFloat:ZpName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
    
GetPlayerPos(targetplayerFloat:XFloat:YFloat:Z);
    
SetPlayerPos(playeridFloat:XFloat:YFloat:Z);
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
GetPlayerName(targetplayerpName2MAX_PLAYER_NAME);
    
format(stringsizeof string"You are teleported to %s."pName2);
       
SendClientMessage(playeridCOLOR_INDIGOstring);
    
format(stringsizeof string"An admin has warped to your position.");
    
SendClientMessage(targetplayerCOLOR_IVORYstring);
    
printf("[GOTO] %s has warped to %s",pNamepName2);
    return 
1;
}

CMD:godmode(playeridparams[])
{
       if(
PlayerInfo[playerid][AdminLevel] < 1) return 0;
       new 
pName[MAX_PLAYER_NAME];
       
SetPlayerHealth(playeridFLOAT_INFINITY);
       
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
       
SendClientMessage(playeridCOLOR_YELLOW"You have enabled godmode!");
       
printf("[GODMODE] %s has used this command"pName);
       return 
1;
}

CMD:godmodeoff(playeridparams[])
{
       if(
PlayerInfo[playerid][AdminLevel] < 1) return 0;
       new 
pName[MAX_PLAYER_NAME];
       
SetPlayerHealth(playerid100);
       
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
       
SendClientMessage(playeridCOLOR_YELLOW"You have disabled godmode.");
       
printf("[GODMODEOFF] %s has used this command"pName);
       return 
1;

Those are just a few from everything
Reply
#8

This is not a place to ask for scripts.
Reply
#9

Quote:
Originally Posted by Sithis
Посмотреть сообщение
This is not a place to ask for scripts.
Where to ask ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)