17.11.2011, 19:36
(
Последний раз редактировалось ViniBorn; 17.11.2011 в 23:57.
)
pawn Код:
if(!strcmp("/pintar",cmdtext))
{
new tmp[24], idx; tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, -1, "/pintar [cor 1] [cor 2]");
new color1 = strval(tmp);
if(color1 < 0 || color1 > 300)
return SendClientMessage(playerid, -1, "Cores de 0/300.");
new color2;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
color2 = color1;
else
color2 = strval(tmp);
if(color2 < 0 || color2 > 300)
return SendClientMessage(playerid, -1, "Cores de 0/300.");
ChangeVehicleColor(GetPlayerVehicleID(playerid), color1, color2);
}