Scripting Admin Commands.
#4

pawn Код:
enum pInfo
{
    pAdmin,
        bool:pBan
}
new PlayerInfo[MAX_PLAYERS][pInfo];

examle:
CMD:giveweapon(playerid,params[])
{
        if( PlayerInfo[playerid][pAdmin] < 3 ) return 1;
        if(sscanf(params,"udd",params[0],params[1],params[2])) return SendClientMessage(playerid,-1,"Usage:{ff0000} /GiveWeapon [playerid] [WeaponID] [Amount]");
        GivePlayerWeapon(params[0],params[1],params[2]);
        SendFormatMessage(playerid,-1,"{FF00FF}You gaved to %s weapon",GetName[ params[0] ]);
        SendFormatMessage(params[0],-1,"{FF00FF}The admin %s gaved you weapon",GetName[playerid]);
        return 1;
}
Reply


Messages In This Thread
Scripting Admin Commands. - by CesarLT - 04.06.2014, 19:01
Re: Scripting Admin Commands. - by MacT - 04.06.2014, 19:19
Re: Scripting Admin Commands. - by CesarLT - 04.06.2014, 19:20
Re: Scripting Admin Commands. - by MacT - 04.06.2014, 19:43
Re: Scripting Admin Commands. - by ReD_HunTeR - 04.06.2014, 19:48
Re: Scripting Admin Commands. - by CesarLT - 04.06.2014, 19:50
Re: Scripting Admin Commands. - by Johnson_Brooks - 04.06.2014, 19:54
Re: Scripting Admin Commands. - by CesarLT - 04.06.2014, 22:22
Re: Scripting Admin Commands. - by CesarLT - 05.06.2014, 12:46
Re: Scripting Admin Commands. - by MacT - 05.06.2014, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)