24.06.2011, 13:57
(
Последний раз редактировалось CocaC0la; 24.06.2011 в 18:32.
)
para aparecer na frente, lado onde desejar utilize as Floats , e incremente posiзхes a eles 2+X,50-Y.. assim vai
PHP код:
if (strcmp("/tunados2", cmdtext, true, 10) == 0)
{
new listitems[] = "Elegy\nSultan\nInfernus\nBullet";
ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST,"Lista de Carros:",listitems,"Selecionar","Sair");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 222) {
if(response) {
if(listitem == 0) {
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(ID DO CARRO ELEGY,X,Y,Z,0.0,-1,-1,9000000);
//vehCriados[carid] = 1;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
AddVehicleComponent(carid,1163);
AddVehicleComponent(carid,1036);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1049);
AddVehicleComponent(carid,1040);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1147);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1079);
ChangeVehiclePaintjob(carid,2);
TogglePlayerControllable(playerid,true);
}
if(listitem == 1) {
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(ID DO CARRO SULTAN,X,Y,Z,0.0,-1,-1,9000000);
//vehCriados[carid] = 1;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
AddVehicleComponent(carid,1163);
AddVehicleComponent(carid,1036);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1049);
AddVehicleComponent(carid,1040);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1147);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1079);
ChangeVehiclePaintjob(carid,2);
TogglePlayerControllable(playerid,true);
}
if(listitem == 2) {
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(ID DO INFERNUS,X,Y,Z,0.0,-1,-1,9000000);
//vehCriados[carid] = 1;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
AddVehicleComponent(carid,1163);
AddVehicleComponent(carid,1036);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1049);
AddVehicleComponent(carid,1040);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1147);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1079);
ChangeVehiclePaintjob(carid,2);
TogglePlayerControllable(playerid,true);
}
if(listitem == 3) {
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(ID DO BULLLET,X,Y,Z,0.0,-1,-1,9000000);
//vehCriados[carid] = 1;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
AddVehicleComponent(carid,1163);
AddVehicleComponent(carid,1036);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1049);
AddVehicleComponent(carid,1040);
AddVehicleComponent(carid,1038);
AddVehicleComponent(carid,1147);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1079);
ChangeVehiclePaintjob(carid,2);
TogglePlayerControllable(playerid,true);
return 1;
}
}
}
return 0;
}