16.02.2018, 12:26
add weaponid 2 in the command variables.
add weapname2 in the duelinfo enums.
add weapid2 in duelinfo enums.
edit this
duelinfo[user][weapname] = weap;
duelinfo[user][weapname] = weap2;
into this
duelinfo[user][weapname] = weap;
duelinfo[user][weapname2] = weap2; //(weapname2)
and edit this
weaponid = CheckWeaponID(weap);
weaponid = CheckWeaponID(weap2);
into this
weaponid = CheckWeaponID(weap);
weaponid2 = CheckWeaponID(weap2);
replace ResetPlayerWeapons(playerid); in command: accept
place it at the ResetPlayerWeapons(user);
edit this
GivePlayerWeapon(user, duelinfo[playerid][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[playerid][weapid], 1000);
into this
GivePlayerWeapon(user, duelinfo[playerid][weapid], 1000);
GivePlayerWeapon(user, duelinfo[playerid][weapid2], 1000);
and edit this
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
into this
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[user][weapid2], 1000);
also, add duelinfo[playerid][weapid2] = weaponid2; in /duel command.
add weapname2 in the duelinfo enums.
add weapid2 in duelinfo enums.
edit this
duelinfo[user][weapname] = weap;
duelinfo[user][weapname] = weap2;
into this
duelinfo[user][weapname] = weap;
duelinfo[user][weapname2] = weap2; //(weapname2)
and edit this
weaponid = CheckWeaponID(weap);
weaponid = CheckWeaponID(weap2);
into this
weaponid = CheckWeaponID(weap);
weaponid2 = CheckWeaponID(weap2);
replace ResetPlayerWeapons(playerid); in command: accept
place it at the ResetPlayerWeapons(user);
edit this
GivePlayerWeapon(user, duelinfo[playerid][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[playerid][weapid], 1000);
into this
GivePlayerWeapon(user, duelinfo[playerid][weapid], 1000);
GivePlayerWeapon(user, duelinfo[playerid][weapid2], 1000);
and edit this
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
into this
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[user][weapid2], 1000);
also, add duelinfo[playerid][weapid2] = weaponid2; in /duel command.