SetPlayerColor
#1

So i'm new.

What i'm trying to do in my script is when player types a certain command, in this case "/ofwkgta" his Color would change, so for this im currently using 'SetPlayerColor' and i've defined my Color at the top of the script, its known as 'COLOR_AQUA'.

Now this all compiles well, but when i go in game to test, the command works, but the color doesn't change or anything? Can anyone help..

Here is code:
Код:
if(strcmp(cmd, "/ofwgkta", true) == 0) {
		SetPlayerColor(playerid,COLOR_AQUA);
		SendClientMessage(playerid,COLOR_AQUA,"Welcome.. Wolve");
		SetPlayerSkin(playerid, 180);
		return 1;
Anyone know the issue?
Reply
#2

Try this
pawn Код:
if (strcmp("/ofwgkta", cmdtext, true, 10) == 0)
    {
        SetPlayerColor(playerid,COLOR_AQUA);
        SendClientMessage(playerid,COLOR_AQUA,"Welcome.. Wolve");
        SetPlayerSkin(playerid, 180);
        return 1;
    }
Reply
#3

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
Try this
pawn Код:
if (strcmp("/ofwgkta", cmdtext, true, 10) == 0)
    {
        SetPlayerColor(playerid,COLOR_AQUA);
        SendClientMessage(playerid,COLOR_AQUA,"Welcome.. Wolve");
        SetPlayerSkin(playerid, 180);
        return 1;
    }
Works, thank you.
Reply
#4

You are welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)