16.06.2014, 01:30
tenta ai
by JoaoP
pawn Код:
CMD:cv(playerid, params[])
{
new Float:x, Float:y, Float:z,carro,cor1,cor2;
if(sscanf(params, "ddd",carro,cor1,cor2))
{
SendClientMessage(playerid, -1,"Uso correto: /cv [idveiculo] [cor1] [cor2]");
}
else
{
if(carro < 400 || carro > 611)
{
SendClientMessage(playerid, -1,"Veнculo nгo encontrado");
}
else
{
if(GetPlayerInterior(playerid) != 0)
{
GetPlayerPos(playerid, x,y,z)
LinkVehicleToInterior(CreateVehicle(carro,x,y,z,90,cor1,cor2,600),GetPlayerInterior(playerid))
}
else
{
GetPlayerPos(playerid, x,y,z)
CreateVehicle(carro,x,y,z,90,cor1,cor2,600)
}
}
}
return 1;
}