Help with this commands
#1

Hello,i've this 2 commands:

pawn Код:
CMD:nameon(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);
    GameTextForPlayer(playerid, "~W~Nametags ~g~On", 5000, 5);
    return 1;
}

CMD:nameoff(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
    GameTextForPlayer(playerid, "~W~Nametags ~R~OFF", 5000, 5);
    return 1;
}
The problem is: How to fuse this 2 commands in only one?So if player use /name,nametags will show,if he type again /name,it will be hided.How?
Reply


Messages In This Thread
Help with this commands - by Face9000 - 24.03.2012, 10:24
Re: Help with this commands - by antonio112 - 24.03.2012, 10:28
Re: Help with this commands - by Face9000 - 24.03.2012, 10:29
AW: Help with this commands - by peugeot - 24.03.2012, 10:32
Re: AW: Help with this commands - by antonio112 - 24.03.2012, 10:38
AW: Help with this commands - by peugeot - 24.03.2012, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)