18.08.2011, 04:20
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:
Anyone know the issue?
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;