22.10.2013, 03:11
pawn Код:
if(d == Fun_Dialog) {
if(response) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsPlayerInVehicle(playerid, Veh_Carchase)) return 1;
switch(GetVehicleModel(GetPlayerVehicleID(playerid))) {
case 425, 432, 447, 520: return SendClientMessage(playerid, red, "[ERROR] You cant't teleport with this vehicle!");
}
switch(listitem) {
case 0: return TeleportClub1(playerid);
case 1: return TeleportClub2(playerid);
case 2: return dcmd_derby(playerid, "");
case 3: return TeleportCannon(playerid);
case 4: return TeleportBhole(playerid);
case 5: return TeleportBhole1(playerid);
case 6: return TeleportUFO(playerid);
}
} else if(!response) {
//button 2 code
}
}