28.01.2011, 14:37
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]
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
[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