SA-MP Forums Archive
Help with CMD - 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)
+--- Thread: Help with CMD (/showthread.php?tid=347993)



Help with CMD - Strech - 03.06.2012

Guys how to make command /mask on /mask off for HITMAN AGENCY.I mean hitmans to use it only.Please tellme the code so i can put it in my script.i tryed everything but i can't.I will give rep too for the help.Thanks in advance.


Re: Help with CMD - Infinity90 - 03.06.2012

Here,
pawn Код:
if (strcmp("/mask", cmdtext, true) == 0)
{
 // Add your Hitman Agency Function here
    ShowPlayerNameTagForPlayer(playerid, false);
    return 1;
}

if (strcmp("/maskoff", cmdtext, true) == 0)
{
 // Add your Hitman Agency Function here

    ShowPlayerNameTagForPlayer(playerid, true);
    return 1;
}