03.02.2011, 10:38
pawn Код:
new dentro;
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0){
if(response){
if(listitem == 0){
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,992,-2752,442);
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Saia do Veнculo Para Lutar! ( /UFC )", pname);
SendClientMessageToAll(0xFF0000, string);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else{
if(dentro == 2) return true;
dentro += 1;
new pname[MAX_PLAYER_NAME];
new string [256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Foi Lutar UFC ( /UFC )", pname);
SendClientMessageToAll(0xFF9900AA, string);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerPos(playerid,986,-2723,442);
ResetPlayerWeapons(playerid);
}