minigun...
#1

please i help with weapon minigun...

minigun only admin...
Reply
#2

GivePlayerWeapon(playerid, 38, 5000);
Reply
#3

You need to include zcmd and sscanf for this.
Код:
CMD:minigun(playerid,params[])
{
    if(!PlayerIsAdmin(playerid)) return SendClientMessage(playerid,COLOE_RED,"You are not an admin!");
    GivePlayerWeapon(playerid,38,5000);
    return 1;
}
Reply
#4

or if you wanna use it for admin ranks
Код:
CMD:minigun(playerid,params[])
{
    if(testinfo[playerid][testadmin] >= 1) //this checks to see if the player is level 1 or higher
    {
        GivePlayerWeapon(playerid,38,5000);
    }
    else //if he isnt then it sends him this message
    {
         SendClientMessage(playerid,COLOR_RED,"You are not an admin!");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)