Great News. I have a freetime.
#include a_samp
#include <dini>
main() {}
public OnPlayerConnect( playerid )
{
SetPlayerColor( playerid, ( random(0xFF) << 24 | random(0xFF) << 16 | random(0xFF) << 8 | 0xFF ) );
return 1;
}
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if( strcmp( \"/RandPlayerColor\", cmdtext, true, 10 ) == 0 )
{
SetPlayerColor( playerid, ( random(0xFF) << 24 | random(0xFF) << 16 | random(0xFF) << 8 | 0xFF ) );
return 1;
}
if( strcmp( \"/SavePlayerColor\", cmdtext, true, 10 ) == 0 )
{
dini_IntSet ( \"color.ini\", \"color\", GetPlayerColor( playerid ) );
return 1;
}
if( strcmp( \"/LoadPlayerColor\", cmdtext, true, 10 ) == 0 )
{
SetPlayerColor(playerid, dini_Int(\"color.ini\", \"color\") );
return 1;
}
return 0;
}