Help with weapon and vehicle
#1

I want to make few heavy vehicles [Hydra , Hunter] and heavy weapons [Minigun , Rocket launcher] only visible to Admins , Can be used by admins only.Not by normal players.

Can anyone tell me how to make ?
Reply
#2

Код:
new weapon = GetPlayerWeapon(playerid);
	if(weapon == id || weapon == id || weapon == id || weapon == id || weapon == id)
	{
            if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
	}
Код:
new vehicle = GetVehicleModel(vehicleid);
	if(vehicle == id || vehicle == id || vehicle == id || vehicle == id || vehicle == id)
	{
            if(playerDB[playerid][admin]==false), RemovePlayerFromVehicle(playerid);
	}
Reply
#3

I have something like this

pawn Код:
if(dialogid == DIALOGID+7) // Heavy Weapons
    {
        if(response)
        {
            if(listitem == 0)
            {
                GivePlayerWeapon(playerid, 35, 500);
            }
            if(listitem == 1)
            {
                GivePlayerWeapon(playerid, 36, 500);
            }
            if(listitem == 2)
            {
                GivePlayerWeapon(playerid, 38, 500);
            }
            if(listitem == 3)
            {
                GivePlayerWeapon(playerid, 9, 500);
            }
        }
        return 1;
    }
and this

pawn Код:
if(listitem == 1)
            {
                GivePlayerWeapon(playerid, 39, 500);
                GivePlayerWeapon(playerid, 40, 1);
and this

pawn Код:
if(listitem == 3)
            {
                GivePlayerWeapon(playerid, 44, 1);
Reply
#4

Код:
if(dialogid == DIALOGID+7) // Heavy Weapons
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 35, 500);
            }
            if(listitem == 1)
            {
                if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 36, 500);
            }
            if(listitem == 2)
            {
                if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 38, 500);
            }
            if(listitem == 3)
            {
                if(playerDB[playerid][admin]==false), ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 9, 500);
            }
        }
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)