01.01.2012, 08:38
(
Последний раз редактировалось Tanush123; 06.01.2012 в 00:32.
)
Fixed...
SendClientMessageToAll(COLOR_GREEN, {0000FF}Welcome to the server);//welcome will be a different color the rest will be green
if(sscanf(params,"ix",orgid,ohex)) return SendClientMessage(playerid,grey,"USAGE: /setocol [orgid] [SA-MP HEX]");
stock hexstr(string[])
{
new
ret,
val,
i;
if (string[0] == '0' && string[1] | 0x20 == 'x') i = 2;
while (string[i])
{
ret <<= 4;
val = string[i++] - '0';
if (val > 0x09) val -= 0x07;
if (val > 0x0F) val -= 0x20;
if (val < 0x01) continue;
if (val < 0x10) ret += val;
}
return ret;
}