question
#6

you can SWAP player's IDs when they accept your duel system by command, you just have to add variables or just PVars for swapping.
for example at /accept command u must place:
SetPVarInt(playerid,"DuelerPlayerID",user);
SetPVarInt(user,"DuelerPlayerID",playerid);

and than u must use these params on this command - duelquit
user = GetPVarInt(playerid,"DuelerPlayerID");

Quote:
Originally Posted by KayJ
Посмотреть сообщение
enum is used for storing player data.
PHP код:
new user[MAX_PLAYER_NAME]; 
he doesn't uses "user" as player name, he's using this like player ID (targets in command)
Reply


Messages In This Thread
question - by ivndosos - 17.02.2018, 15:27
Re: question - by KayJ - 17.02.2018, 15:30
Re: question - by Mugala - 17.02.2018, 15:35
Re: question - by ivndosos - 17.02.2018, 15:39
Re: question - by KayJ - 17.02.2018, 15:44
Re: question - by Mugala - 17.02.2018, 15:48

Forum Jump:


Users browsing this thread: 2 Guest(s)