how to define this?
#3

This is the whole code:


Код:
 	if(dialogid == WEAPONS_PICKUP_DIALOG)
    {
        if(response == 0) return SendClientMessage(playerid, -1, "You have decided not to pick a weapon up.");
        new i = WeaponsFound[playerid][listitem];
        if(WeaponInfo[i][wWeaponFaction] != 0 && PlayerInfo[playerid][pMember] == 0)
        {
		SendClientMessage(playerid, COLOR_GRAD1, "This is a faction weapon, so you cannot pick it up!");
   		return 1;
  		}
  		GetWeaponNameEx(WeaponInfo[i][wWeaponID], string, sizeof(string));
        format(string, sizeof(string), "You have picked a weapon up. (%s)", string);
        SendClientMessage(playerid, -1, string);
        GivePlayerWeapon(playerid, WeaponInfo[i][wWeaponID], 60000);
        DestroyDynamicObject(WeaponInfo[i][wObject]);
  		WeaponInfo[i][wWeaponFaction] = 0;
        WeaponInfo[i][wWeaponInt] = 0;
        WeaponInfo[i][wWeaponVW] = 0;
     	return 1;
    }
Reply


Messages In This Thread
how to define this? - by IndependentGaming - 20.11.2014, 13:04
Re : how to define this? - by Dutheil - 20.11.2014, 13:06
Re: how to define this? - by IndependentGaming - 20.11.2014, 13:35
Re : how to define this? - by Dutheil - 20.11.2014, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)