Invisible command
#1

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
Reply
#2

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;
}
Reply
#3

how to add this CMD
Reply
#4

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.
Reply
#5

how ? ? ? ? ? ? ?
Reply
#6

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.
Reply
#7

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

ok so now the commands is /nickon and /nickoff ?
Reply
#9

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.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)