23.08.2010, 21:15
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pname[MAX_PLAYER_NAME];
new string[256];
if(dialogid == 1337)
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-2418.4846,-614.8561,132.2391);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 35.9913);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Fazer Drift Em TPD1 ( /tpd1 )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
}
else{
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Fazer Drift Em TPD1 ( /tpd1 )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-2418.4846,-614.8561,132.2391);
SetPlayerFacingAngle(playerid, 35.9913);
ResetPlayerWeapons(playerid);
}
}
}
}
if(listitem == 1)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,-302.7378,1532.6254,75.0172);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 181.0729);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
}
else{
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-302.7378,1532.6254,75.0172);
SetPlayerFacingAngle(playerid, 181.0729);
ResetPlayerWeapons(playerid);
}
}
}
if(listitem == 2)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,1260.8165,-2055.7664,59.0758);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 267.3261);
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Fazer Drift Em TPD3 ( /tpd3 )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
}
else{
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Fazer Drift Em TPD3 ( /tpd3 )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1260.8165,-2055.7664,59.0758);
SetPlayerFacingAngle(playerid, 267.3261);
ResetPlayerWeapons(playerid);
}
}