duel sys
#8

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
PHP код:
CMD:accept(playeridparams[])
{
    if(
invite[playerid] == 1)
    {
        new 
user DuelSender[playerid];
        
ResetPlayerWeapons(user);
        
RemovePlayerFromVehicle(user);
        
SetPlayerArmour(user100);
        
SetPlayerHealth(user100);
        
SetPlayerVirtualWorld(user100);
        
SetPlayerPos(user1266.6100,2729.2917,10.8203);
        
GivePlayerWeapon(userduelinfo[user][weapid], 1000);
        
GivePlayerWeapon(userduelinfo[user][weapid2], 1000);
        
duelinfo[user][induel] = 1;
        
inviter[user] = 0;
        
ResetPlayerWeapons(playerid);
        
RemovePlayerFromVehicle(playerid);
        
SetPlayerArmour(playerid100);
        
SetPlayerHealth(playerid100);
        
SetPlayerVirtualWorld(playerid100);
        
GivePlayerWeapon(playeridduelinfo[user][weapid], 1000);
        
GivePlayerWeapon(playeridduelinfo[user][weapid2], 1000);
        
SetPlayerPos(playerid1272.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;

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)