27.07.2012, 19:21
pawn Код:
new pTempVeh[MAX_VEHICLES];//Top
//I HAVE A LOT OF SPAWNING PLACES
case DIALOG_COP_SPAWN:
{
if(response)
{
switch(listitem)
{
case 0:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(597, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 1:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(523, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 2:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(599, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 3:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(427, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
}
}
}
case DIALOG_COP_SPAWN_TWO:
{
if(response)
{
switch(listitem)
{
case 0:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(597, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 1:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(523, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 2:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(599, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 3:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(427, -1622.4440,651.8917,10.1875, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
}
}
}
case DIALOG_SPAWN_TUG:
{
if(response){
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(583, -1547.6190,-442.2964,9.0000, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
}
case DIALOG_SPAWN_PLANE:
{
if(response)
{
switch(listitem)
{
case 0:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(511, -1274.1472,-618.5521,14.1484, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 1:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(513, -1274.1472,-618.5521,14.1484, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
case 2:
{
if(GetPlayerVehicleID(playerid) == Veh[playerid])
DestroyVehicle(Veh[playerid]);
Veh[playerid] = CreateVehicle(593, -1274.1472,-618.5521,14.1484, 0.0000, -1, -1, 100);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
}
}
}
}