2 little questions about give weapon [HELP]
#3

Yes for sure,

Here is one of my cmd that will give everyone a uzi:

pawn Код:
CMD:uziall(playerid, params[])
{
    new str[128];
    if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_ORANGE, "** You are not logged in, please login first.");
    if(PlayerAcc[playerid][Admin] == 0) return SendClientMessage(playerid, -1,""orange"** Sorry, only admins level 4+ can do that command.");
    if(PlayerAcc[playerid][Admin] >= 4)
    {
        if(sscanf(params, "u")) return SendClientMessage(playerid, COLOR_ORANGE, "** You must be type /uziall");

        GivePlayerWeapon(playerid, 28, 9000);
        format(str, sizeof(str), "~y~Uzi ~r~kill ~y~time!");
        GameTextForAll(str, 4000, 3);
        PlayerPlaySound(id,1057,0.0,0.0,0.0);
        foreach(Player, i)
        {
            if(IsPlayerConnected(i) && (i != playerid) && (PlayerAcc[playerid][Admin] < PlayerAcc[i][Admin]))
            {
                GivePlayerWeapon(playerid, 28, 9000);
            }
        }
        format(str, sizeof(str), "** Admin %s(ID:%d) gave everyone a uzi.", GetName(playerid), playerid);
        SendClientMessageToAll(COLOR_YELLOW, str);
        format(str, sizeof(str), "** You gave everyone a uzi.");
        SendClientMessage(playerid, COLOR_YELLOW, str);
    }
    else return ErrorMessages(playerid, 5);
    return 1;
}
Reply


Messages In This Thread
2 little questions about give weapon [HELP] - by mickos - 02.06.2013, 16:05
Re: 2 little questions about give weapon [HELP] - by RenSoprano - 02.06.2013, 17:06
Re: 2 little questions about give weapon [HELP] - by mickos - 02.06.2013, 17:10
Re: 2 little questions about give weapon [HELP] - by RenSoprano - 02.06.2013, 17:33
Re: 2 little questions about give weapon [HELP] - by mickos - 02.06.2013, 17:33
Re: 2 little questions about give weapon [HELP] - by RenSoprano - 02.06.2013, 17:37
Re: 2 little questions about give weapon [HELP] - by mickos - 02.06.2013, 17:42

Forum Jump:


Users browsing this thread: 1 Guest(s)