20.11.2014, 13:35
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; }