Posts: 383
Threads: 70
Joined: Feb 2016
At dialog you have checked if the player's team i grove street so if you are not in gove street you wont the the vehicle
Код:
if(gTeam[playerid] == GroveStreet)
{
and at command you haven't done that.
Posts: 383
Threads: 70
Joined: Feb 2016
No the problem is that you wasnt in Grove Street team.
Код:
if(dialogid == Auto)
{
switch(listitem)
{
case 0:
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, a);
CreateVehicle(562, x+3,y,z, a, Verde, Verde, -1);
printf("Auto Spawnata");
PutPlayerInVehicle(playerid, 562, 0);
}
case 1:
{
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z);
GetPlayerFacingAngle(playerid, a);
CreateVehicle(562, x+3,y,z, a, Viola, Viola, -1);
printf("Auto Spawnata");
PutPlayerInVehicle(playerid, 562, 0);
}
}
return 1;
}
test this and tell me
Posts: 15
Threads: 5
Joined: Oct 2016
Reputation:
0
It spawns the car but in my dialog we have 3 cars: Elegy, Bullet and Sultan. We have two teams. If a grove street member spawn the car it should be Green (Verde) and if is a ballas member it should be Purple (Viola) :\
Posts: 383
Threads: 70
Joined: Feb 2016
Well
Your old codes should work just set your team to Grove street or ballas.
if doesnt work test this..
http://paste2.org/tP8183x6