29.04.2012, 01:12
Here fixed it as you want. Such add the define line on the top near all other color definitions.
pawn Код:
#define COLOR_GREEN 0x33AA33AA
//Add the above line on the top of all the other color definitions.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, COLOR_GREEN, "Drive Safely!");
GameTextForPlayer(playerid, "~g~Drive Safely", 1000, 3);
}
return 1;
}