SA-MP Forums Archive
duel script problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: duel script problem (/showthread.php?tid=217658)



duel script problem - jaksimaksi - 28.01.2011

hi, im making duel script, when u type /pvp playerid gunid, u get teleported to zone, and giving a selected weapon that u writed in... But everything is giving by the timer:

[pawn]


pawn Код:
forward GoDuel(playerid,pid,id2);
public GoDuel(playerid,pid,id2)
{

    SetPlayerHealth(playerid,pid,100);
    SetPlayerHealth(playerid,playerid,100);
    GivePlayerWeapon(playerid,id2,9999);
    GivePlayerWeapon(pid,id2,9999);
    InvitedDuel[playerid] = true;
    InvitedDuel[pid] = true;
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(pid,false);
    ExecuteCount(playerid,pid);
    return true;
}

But the weapons when timer ends dont giving... The script who creating weapons is good, i tested it by giving when u just type /pvp... somethings wrong here. Help please, sorry for bad english


Re: duel script problem - Steven Paul - 28.01.2011

this is because you are redefining in callback