SA-MP Forums Archive
when type a command, your colour changes.. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: when type a command, your colour changes.. (/showthread.php?tid=221164)



when type a command, your colour changes.. - davelord - 05.02.2011

hey, i wanted to make this cop command, when you type Onduty, it gives you not only your skin, but a blue head colour. So, i need a command that changes the headcolour to blue, can someone help me? thanks


Re: when type a command, your colour changes.. - Kitten - 05.02.2011

pawn Код:
if (strcmp("/onduty", cmdtext, true, 10) == 0)
    {
        SetPlayerSkin(playerid, skinid);
        //Not possible in sa-mp to make blue hair sorryz
        return 1;
    }



Re: when type a command, your colour changes.. - davelord - 05.02.2011

Yeah, thats kinda how i expected it, but i got no idea how to paste a head-colour-changing command in there. So when you actually type the command, the colour of your head (or w/e its called) will change into blue.


Re: when type a command, your colour changes.. - Kitten - 05.02.2011

nametag?

pawn Код:
if (strcmp("/onduty", cmdtext, true, 10) == 0)
    {
        SetPlayerSkin(playerid, skinid);
        SetPlayerColor(playerid , 0x7777DDFF );
        return 1;
    }



Re: when type a command, your colour changes.. - davelord - 05.02.2011

Yeah, thanks alot.