if(GetString(mysql_string,"тп на аб") || GetString(mysql_string,"ТП НА АБ"))
{
new Float:X = -2140.0364, Float:Y = -750.6041, Float:Z = 32.0234, Float:A = 180.4603;
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
}
if(GetString(mysql_string,"тп на цр") || GetString(mysql_string,"ТП НА ЦР"))
{
new Float:X = 1119.8223, Float:Y = -1425.8143, Float:Z = 15.7969, Float:A = 244.9057;
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
}
if(GetString(mysql_string,"тп на шахту") || GetString(mysql_string,"ТП НА ШАХТУ"))
{
new Float:X = -524, Float:Y = 850, Float:Z = -43, Float:A = 244.9057;
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
}
if(GetString(mysql_string,"тп на ферму") || GetString(mysql_string,"ТП НА ФЕРМУ"))
{
new Float:X = -256, Float:Y = -1365, Float:Z = 10, Float:A = 244.9057; //-256 1365 10
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
}
if(GetString(mysql_string,"тп на тюнинг") || GetString(mysql_string,"ТП НА ТЮНИНГ"))
{
new Float:X = 2559, Float:Y = 978, Float:Z = 11, Float:A = 244.9057; //-256 1365 10
SetPlayerPos(playerid, X, Y, Z);
SetPlayerFacingAngle(playerid, A);
}
if(GetString(mysql_string,"спавн") || GetString(mysql_string,"Спавн") || GetString(mysql_string,"Spawn") || GetString(mysql_string,"spawn")) PlayerSpawn(playerid);
if(GetString(mysql_string,"флип") || GetString(mysql_string,"Флип") || GetString(mysql_string,"flip") || GetString(mysql_string,"Flip"))
{
new car = GetPlayerVehicleID(playerid), Float:X, Float:Y, Float:Z, Float:A;
GetVehiclePos(car, X, Y,Z);
GetVehicleZAngle(car, A);
SetVehiclePos(car, X, Y, Z+1.0);
SetVehicleZAngle(car, A);
J_RepairVehicle(car);
}
if(GetString(mysql_string,"нрг") || GetString(mysql_string,"НРГ") || GetString(mysql_string,"NRG") || GetString(mysql_string,"NRG-500"))
{
if(CountVehicles() == 1999) return SendErrorMessage(playerid);
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
PLVEH_destroy(playerid);
if AnimPlayed{playerid} *then return false;
PI[playerid][plveh] = J_AddStaticVehicleEx(522, X, Y, Z, A, random(127), random(127));
PutPlayerInVehicle(playerid, PI[playerid][plveh], 0);
if !IsAVelik(PI[playerid][plveh]) || !IsASkate(PI[playerid][plveh]) *then SetEngineStatus(PI[playerid][plveh], false, playerid);
}
if(GetString(mysql_string,"нрг") || GetString(mysql_string,"НРГ") || GetString(mysql_string,"NRG") || GetString(mysql_string,"NRG-500"))
{
if(CountVehicles() == 1999) return SendErrorMessage(playerid);
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, A);
PLVEH_destroy(playerid);
if AnimPlayed{playerid} *then return false;
PI[playerid][plveh] = J_AddStaticVehicleEx(522, X, Y, Z, A, random(127), random(127));
PutPlayerInVehicle(playerid, PI[playerid][plveh], 0);
if !IsAVelik(PI[playerid][plveh]) || !IsASkate(PI[playerid][plveh]) *then SetEngineStatus(PI[playerid][plveh], false, playerid);
}