13.02.2014, 07:07
pawn Код:
if(dialogid == 13)
{
if(response == 0) return SendClientMessage(playerid, 0xff0000ff, "[BoT] You Closed The MoreBikes Dialog");
switch(listitem)
{
case 0:
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(521, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
}
case 1:
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(523, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
}
case 2:
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(463, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
}
case 3:
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(586, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
}
case 4:
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(468, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
}
case 5:
{
new Float:X, Float:Y, Float:Z, Float:Angle, Car;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
Car = CreateVehicle(471, X + 3.0, Y, Z + 1.0, Angle, -1, -1, 5000);
PutPlayerInVehicle(playerid, Car, 0);
}
}
}