SA-MP Forums Archive
Invisible command - 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: Invisible command (/showthread.php?tid=466068)



Invisible command - Bulgaria - 25.09.2013

ok soooo what is the command when i chat /nickoff my map icon on the map it's invisible and my nickname up the my head when i play is ivisible /?

P.S. Sorry for my bad english


Re: Invisible command - DanishHaq - 25.09.2013

pawn Код:
CMD:nickoff(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00); // the alpha of 00 hides the marker
        ShowPlayerNameTagForPlayer(playerid, i, false);
    }
    return 1;
}

CMD:nickon(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFFFF); // white colour, change it to what you want to set it back to normal
        ShowPlayerNameTagForPlayer(playerid, i, true);
    }
    return 1;
}



Re: Invisible command - Bulgaria - 25.09.2013

how to add this CMD


Re: Invisible command - DanishHaq - 25.09.2013

Copy & paste

Lol, but I used ZCMD for that command, and it's a ready made command, you can restrict it to whoever you like above below the first open bracket too. Just add it to your GM and make sure you've included ZCMD.


Re: Invisible command - Bulgaria - 25.09.2013

how ? ? ? ? ? ? ?


Re: Invisible command - DanishHaq - 25.09.2013

Ok, so download the ZCMD include from here: https://sampforum.blast.hk/showthread.php?tid=91354.

After you've done that, put the zcmd.inc in your server directory/pawno/include folder.

After that, add the following code under #include <a_samp>:

pawn Код:
#include <zcmd>
And after that, add those commands I gave you before the BOTTOM of your scripts, not in any callbacks, so not under OnPlayerCommandText. Just on its own at the bottom.


Re: Invisible command - Bulgaria - 25.09.2013

ok i think is work so now i have to find somebody when i try they work ?


Re: Invisible command - Bulgaria - 25.09.2013

ok so now the commands is /nickon and /nickoff ?


Re: Invisible command - DanishHaq - 25.09.2013

Yes, so when you compile it and restart your server, it should work.

PS: ZCMD, the thing that I used to create those commands, is just an easier way to create commands and the commands are faster too. Find someone to come on your server and see if they work. And if you're going to ask me, I can't at the moment until a few days as my PC is in repair. I'm using my netbook which doesn't run SA-MP :P.


Re: Invisible command - Bulgaria - 25.09.2013

OK i understant 78% of this when you say and ok tnx i will so happy if the work tnx again Danish )))))))