the Id Colors
#1

How can i make the Players Color coz i have it white
Reply
#2

https://sampwiki.blast.hk/wiki/How_to_make_spawn_colors
Reply
#3

SetPlayerColor(playerid, color);

Playerid - The id of the player to change the color of
Color - The id of the color (Should be in hex)
Reply
#4

that what im talking about
Reply
#5

Quote:
Originally Posted by tomo523869
that what im talking about
Show me your whole OnPlayerText callback
Reply
#6

public OnPlayerText(playerid, text[])
{
if (Mute[playerid] == 1)
{
SendClientMessage(playerid, RED, "You are muted! You cannot talk.");
}
else
{
new string[256];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "[%i] %s: %s", playerid, playername, text);
SendClientMessageToAll(GetPlayerColor(playerid),st ring);
}
return 0;
}

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
new receiver[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, player, sizeof(player));
GetPlayerName(recieverid, receiver, sizeof(receiver));
format(string, sizeof(string), "PM from [%i]%s to [%i]%s: %s",playerid,player,recieverid,receiver,text);
SendClientMessageToAdmins(LIGHTBLUE,string,1);
PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
SendClientMessage(playerid, GREEN, "Private Message Sent!");
return 1;
}



heses the whole shit http://pastebin.com/GpktiiQm
Reply
#7

This part:
pawn Код:
else
{
  new string[256];
  GetPlayerName(playerid, playername, sizeof(playername));
  format(string, sizeof(string), "[%i] %s: %s", playerid, playername, text);
  SendClientMessageToAll(GetPlayerColor(playerid),string);//This row
}
Is where the error comes in, just change "GetPlayerColor(playerid)" to a hex value to change the color of the message
Reply
#8

Stop using cheats and maybe you'll get some help.
Reply
#9

Quote:
Originally Posted by Don Correlli
Stop using cheats and maybe you'll get some help.
LOL pwnt. Well said.
Reply
#10

im making my teleports so u need sobait
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)