10.08.2011, 20:07
pawn Код:
if(dialogid == 1112)
{
if(response)
{
if(listitem == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-51.0139,-2439.0269,324.7329);
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
}
else
{
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-51.0139,-2439.0269,324.7329);
}
return true;
}
if(listitem == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,1146.0322,-2571.8264,12.2061);
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
}
else
{
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1146.0322,-2571.8264,12.2061);
}
return true;
}
if(listitem == 2)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,566.3971,-801.1214,184.3314);
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
}
else
{
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,566.3971,-801.1214,184.3314);
}
}
}
return true;
}
porque eu fiz por aqui usando "ESPAЗO".