17.02.2018, 09:34
change GivePlayerWeapon(playerid,duelinfo[playerid][weapid],1000) and GivePlayerWeapon(playerid,duelinfo[playerid][weapid2],1000)
to GivePlayerWeapon(playerid,duelinfo[user][weapid],1000) and GivePlayerWeapon(playerid,duelinfo[user][weapid],1000)
like this
to GivePlayerWeapon(playerid,duelinfo[user][weapid],1000) and GivePlayerWeapon(playerid,duelinfo[user][weapid],1000)
like this
PHP код:
CMD:accept(playerid, params[])
{
if(invite[playerid] == 1)
{
new user = DuelSender[playerid];
ResetPlayerWeapons(user);
RemovePlayerFromVehicle(user);
SetPlayerArmour(user, 100);
SetPlayerHealth(user, 100);
SetPlayerVirtualWorld(user, 100);
SetPlayerPos(user, 1266.6100,2729.2917,10.8203);
GivePlayerWeapon(user, duelinfo[user][weapid], 1000);
GivePlayerWeapon(user, duelinfo[user][weapid2], 1000);
duelinfo[user][induel] = 1;
inviter[user] = 0;
ResetPlayerWeapons(playerid);
RemovePlayerFromVehicle(playerid);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SetPlayerVirtualWorld(playerid, 100);
GivePlayerWeapon(playerid, duelinfo[user][weapid], 1000);
GivePlayerWeapon(playerid, duelinfo[user][weapid2], 1000);
SetPlayerPos(playerid, 1272.0603,2857.6536,10.8203);
duelinfo[playerid][induel] = 1;
invite[playerid] = 0;
}
else return SendClientMessage(playerid, -1, "{c3c3c3}(DUEL) You didn't recieve any duel request.");
return 1;
}