duel sys
#5

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.
Reply


Messages In This Thread
duel sys - by ivndosos - 16.02.2018, 09:32
Re: duel sys - by kingmk - 16.02.2018, 09:38
Re: duel sys - by ivndosos - 16.02.2018, 10:11
Re: duel sys - by PepsiCola23 - 16.02.2018, 11:57
Re: duel sys - by Mugala - 16.02.2018, 12:26
Re: duel sys - by ivndosos - 16.02.2018, 12:58
Re: duel sys - by ivndosos - 17.02.2018, 09:29
Re: duel sys - by Mugala - 17.02.2018, 09:34
Re: duel sys - by PepsiCola23 - 17.02.2018, 09:38

Forum Jump:


Users browsing this thread: 2 Guest(s)