if(dialogid == 8900) //vamo stavite isti broj kao sto ste maloprije stavili { if(response) { if(listitem == 0) // Sta se desi ako igrac klikne na pendrek u izborniku (dialogu) { Pause(playerid); SetPlayerPos(playerid, 3442.8096,2174.8762,3.0713); GameTextForPlayer(playerid,"~y~Gymkhana Airport ~r~ by MosQ",3000,4); SetPlayerArmour(playerid, 0); ResetPlayerWeapons(playerid); } if(listitem == 1) // Sta se desi ako igrac klikne na pendrek u izborniku (dialogu) { SetPlayerPos(playerid, 1320.0548,1261.0146,10.8203); GameTextForPlayer(playerid,"~b~Las ~w~ Venturas ~r~ Airport",3000,4); SetPlayerArmour(playerid, 0); ResetPlayerWeapons(playerid); } } return 1; } |
if (strcmp("//aa", cmdtext, true, 10) == 0) { if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 325.3232,2544.5586,16.8077); } else { SetPlayerPos(playerid, 325.3232,2544.5586,16.8077); GameTextForPlayer(playerid,"~r~Abandoned Airport ~b~By MosQ",3000,4); SetPlayerArmour(playerid, 0); ResetPlayerWeapons(playerid); } return 1; } |
if (strcmp("/aa", cmdtext, true, 3) == 0)
{
if (IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid), 325.3232,2544.5586,16.8077);
}
else
{
SetPlayerPos(playerid, 325.3232,2544.5586,16.8077);
GameTextForPlayer(playerid,"~r~Abandoned Airport ~b~By MosQ",3000,4);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
}
return 1;
}
if (strcmp("/aa", cmdtext, true, 3) == 0) { if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 325.3232,2544.5586,16.8077); } else { SetPlayerPos(playerid, 325.3232,2544.5586,16.8077); GameTextForPlayer(playerid,"~r~Abandoned Airport ~b~By MosQ",3000,4); SetPlayerArmour(playerid, 0); ResetPlayerWeapons(playerid); } return 1; } |
I have something like this
If i add car teleport like this in command : It won't work, it will teleport me to another teleport... |
if(dialogid == 8900) //vamo stavite isti broj kao sto ste maloprije stavili
{
if(response)
{
if(listitem == 0) // Sta se desi ako igrac klikne na pendrek u izborniku (dialogu)
{
Pause(playerid);
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), 3442.8096,2174.8762,3.0713);
else SetPlayerPos(playerid, 3442.8096,2174.8762,3.0713);
GameTextForPlayer(playerid,"~y~Gymkhana Airport ~r~ by MosQ",3000,4);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
}
if(listitem == 1) // Sta se desi ako igrac klikne na pendrek u izborniku (dialogu)
{
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), 1320.0548,1261.0146,10.8203);
else SetPlayerPos(playerid, 1320.0548,1261.0146,10.8203);
GameTextForPlayer(playerid,"~b~Las ~w~ Venturas ~r~ Airport",3000,4);
SetPlayerArmour(playerid, 0);
ResetPlayerWeapons(playerid);
}
}
return 1;
}