16.08.2012, 01:57
#EDIT Ficou quase igual a do Bruno nao vi antes de Postar /\
pawn Код:
CMD:v(playerid, params[])
{
new Carro, Cor1, Cor2, Veiculo[MAX_PLAYERS];
if(sscanf(params, "ddd", Carro, Cor1, Cor2)) return SendClientMessage(playerid, -1, "[x] Use: /v [ id ] [ cor 1 ] [ cor 2 ]");
if(Cor1 < 1 || Cor1 > 255) return SendClientMessage(playerid, -1, "[x] Cores Possivel de 1 a 255");
DestroyVehicle(Veiculo[playerid]);
new Float:PosX, Float:PosY, Float:PosZ;
GetPlayerPos(playerid, PosX, PosY, PosZ);
Veiculo[playerid] = CreateVehicle(Veiculo, PosX, PosY, PosZ, 0.0, Cor1, Cor2, -1);
PutPlayerInVehicle(playerid, Veiculo[playerid], 0);
return 1;
}