23.12.2011, 22:39
Se vocк que fazer um carro, que so vocк pode entrar й simples
topo
Fazendo 1 sultan tunado
topo
pawn Код:
new VipCar[0]; // Carros vips
pawn Код:
VipCar[0] = CreateVehicle(560,1541.8882,-1674.9540,13.2660,0.2198,3,3,999999999);
for(new i = 0; i < 0; i++)
{
AddVehicleComponent(VipCar[0], 1169);
AddVehicleComponent(VipCar[0], 1093);
AddVehicleComponent(VipCar[0], 1094);
AddVehicleComponent(VipCar[0], 1075);
AddVehicleComponent(VipCar[0], 1164);
AddVehicleComponent(VipCar[0], 1165);
AddVehicleComponent(VipCar[0], 1168);
AddVehicleComponent(VipCar[0], 1163);
AddVehicleComponent(VipCar[0], 1087);
AddVehicleComponent(VipCar[0], 1010);
}
pawn Код:
if(vId==VipCar[0]) // eu uso vId , a maioria usa vid
{
new nome[24];
GetPlayerName(playerid, nome, sizeof nome);
if(strfind(nome, "Seu nome", true) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"Bem vindo ao seu carro Matheus_City.");
return 1;
}
else
{
SendClientMessage(playerid,colordesejada,"Vocк nгo й o Matheus_City! xD");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
}