Cannot end PVP command

Started by Kewun, Nov 12, 2016, 08:22 PM

Previous topic - Next topic

Kewun

if ( cmd == "pvp" )
{
if ( !text ) MessagePlayer("[#ff0000] [ERROR] [#ffffff]You need to specify a player, and weapon id",player);
else
{
local pTemp = split(text, " "), p = GetPlayer( pTemp[ 0 ] );
if ( p )
{
local weapon = text.slice( pTemp[ 0 ].len() + 1 );

I need a command, to /pvp player weaponid
to pvp a player 1vs1, choosing the player and weapon
i dont know how to end this code
any help will be appericated
and like /pvpaccept, /pvpdecline

kennedyarz

#1
Do not understand what you want to get.  that wants a player to go to dueliar with another but 1 to 1 ?. Ah and that another to accept the battle. As well as when the function / goto and the other has to accept so that it can reach the ?? I am very far from what you want to say.

Kewun

Yea exactly. Sending PvP request and command accept or decline

KAKAN

Quote from: Kewun on Nov 12, 2016, 10:33 PMYea exactly. Sending PvP request and command accept or decline
See the team system. Its nearly same, except, just change /accept command
oh no