Admin rights!
#2

Yes.

Kick Command:

PHP код:
CMD:kick(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        new 
PIDpName[MAX_PLAYER_NAME], Sender[MAX_PLAYER_NAME], Str;
        if(
sscanf(params"us[128]"PIDparams)) return SendClientMessage(playeridCOLOR_GREY"USAGE: /kick [playerid] [reason]");
        if(!
IsPlayerConnected(PID)) return SendClientMessage(playeridCOLOR_GREY"Player is not connected!");
        
Kick(PID);
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use that command!");
    }
    return 
1;

God Command:

PHP код:
CMD:god(playeridparams[])
{
    if(
IsPlayerAdmin(playerid))
    {
        
SetPlayerHealth(playerid10000000);
        
SetPlayerArmour(playerid10000000);
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use that command!");
    }
    return 
1;

Teleport Command:

PHP код:
CMD:teleport(playeridparams[])
{
     if(
IsPlayerAdmin)
     {
        new 
ID;
        new 
Str[64];
        if(
sscanf(params"u"ID)) SendClientMessage(playeridCOLOR_GREY"USAGE: /goto [playerid]");
        else if(
IsPlayerConnected(ID) == 0SendClientMessage(playeridCOLOR_GREY"Player is not connected!");
        else
        {
            new 
Float:xFloat:yFloat:z;
            
GetPlayerPos(playeridxyz);
            
SetPlayerPos(IDx+1y+1z);
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_GREY"You are not authorized to use that command!");
    }
    return 
1;

Stripped from my little book of Commands...
Reply


Messages In This Thread
Admin rights! - by samtey - 30.07.2011, 08:28
Re: Admin rights! - by Kush - 30.07.2011, 08:37
AW: Admin rights! - by samtey - 30.07.2011, 08:47
Re: Admin rights! - by Markx - 30.07.2011, 08:52
Re: Admin rights! - by Kush - 30.07.2011, 08:53
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 08:55
AW: Admin rights! - by samtey - 30.07.2011, 08:56
Re: Admin rights! - by Double-O-Seven - 30.07.2011, 08:57
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 09:00
Re: Admin rights! - by Kush - 30.07.2011, 09:00
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 09:04
AW: Admin rights! - by samtey - 30.07.2011, 09:07
Re: AW: Admin rights! - by Kush - 30.07.2011, 09:12
Re: Admin rights! - by Markx - 30.07.2011, 09:19
AW: Admin rights! - by samtey - 30.07.2011, 09:19
Re: AW: Admin rights! - by Kush - 30.07.2011, 09:37
Re: AW: Admin rights! - by Markx - 30.07.2011, 10:08
AW: Re: AW: Admin rights! - by samtey - 30.07.2011, 10:22
Re: AW: Admin rights! - by Kush - 30.07.2011, 15:08

Forum Jump:


Users browsing this thread: 7 Guest(s)