[PEDIDO] /pintar
#1

pesoal quria um comando /pintar pra um server de drift
Reply
#2

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;}
}
Reply
#3

Porque tem q ser 2 cores?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)