SA-MP Forums Archive
[PEDIDO] /pintar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] /pintar (/showthread.php?tid=310660)



[PEDIDO] /pintar - Hancoc - 13.01.2012

pesoal quria um comando /pintar pra um server de drift


Re: [PEDIDO] /pintar - 4LiSs0N - 13.01.2012

pawn Код:
if(strcmp(cmd, "/pintar", true) == 0)
{
new cor1, cor2;
new veiculo;
tmp = strtok(cmdtext, idx);
cor1 = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho,"USE: /pintar [cor 1] [cor 2]");
return 1;}
cor2 = strval(tmp);
veiculo = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid,veiculo)){
ChangeVehicleColor(veiculo,cor1,cor2);
SendClientMessage(playerid,0x00FF7FAA, "[INFO] Veнculo repintado com sucesso!");
return 1;}
}



Re: [PEDIDO] /pintar - Hancoc - 13.01.2012

Porque tem q ser 2 cores?


Re: [PEDIDO] /pintar - BlackCoder - 13.01.2012

Quote:
Originally Posted by Hancoc
Посмотреть сообщение
Porque tem q ser 2 cores?
vc pode colocar so 1 cor no cmd mas deve colocar as 2 cores no createvehicle.