/teles dialog problem...
#1

hey guys,
when i enter /teles in my server then there is nothing happening... and this is my command and dialog response:

pawn Код:
if ( dialogid == 200 )// teleports
        {
        /* if second button pressed */
        if ( !response ) return SendClientMessage( playerid, -1, "TDC_BOT: You have canceled" );
        /* if first button pressed */
        if ( response )
        {
            switch ( listitem )
            {
            case 0:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2610.5095,-2469.2476,3.0000);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2610.5095,-2469.2476,3.0000);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the Boat Stunt!");
            }
            case 1:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -1398.103515,937.631164,1036.479125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 15);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -1398.103515,937.631164,1036.479125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 15);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the derby!");
            }
            case 2:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -2279.6414,2017.9814,265.6766);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -2279.6414,2017.9814,265.6766);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the Drag Race! now beat your opponent!");
            }
            case 3:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -2254.1101,-1141.3745,609.1346);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -2254.1101,-1141.3745,609.1346);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the driftking!");
            }
            case 4:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2385.0134,1030.7831,10.8203);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2385.0134,1030.7831,10.8203);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Las Venturas Tuning Garage!");
            }
            case 5:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 1040.8041,-1032.2076,32.0148);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 1040.8041,-1032.2076,32.0148);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Los Santos Tuning Garage!");
            }
            case 6:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -1935.9169,234.4120,34.3125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -1935.9169,234.4120,34.3125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to San Fierro Tuning Garage!");
            }
            case 7:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -2706.3394,218.2382,4.1797);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Wheel Arch Angels!");
            }
            case 8:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2644.9099,-2022.1721,13.5469);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2644.9099,-2022.1721,13.5469);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Loco Low Co Tuning Garage!");
            }
            case 9:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2885.2529,-2387.7244,7.8172);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2885.2529,-2387.7244,7.8172);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the Kart Race! pick a kart!");
            }
            case 10:
            {
            ShowPlayerDialog(playerid, 300, DIALOG_STYLE_LIST, "Drifts", "Drift1\nDrift2\nDrift3", "ok", "cancel");
            }
            case 11:
            {
            ShowPlayerDialog(playerid, 400, DIALOG_STYLE_LIST, "Stunts", "/stunt1\n/stunt2\n/stunt3{FF0000}", "ok", "cancel");
            }
            }
        }
    }
COMMAND:
pawn Код:
CMD:teles(playerid, params[])
{
    ShowPlayerDialog(playerid, 200, DIALOG_STYLE_LIST, "Teleports", "Boatstunt\nDerby\nDrag\nDriftking\nLvtune\nLstune\nSftune\nArch\nLoco\nKart\nDrift[1/3]\nStunt[1/3]", "spawn", "cancel");
    return 1;
}
and i already tried to put above teh ShowPlayerDialog at my cmd #pragma unused params but that ain't working...
can anyone pls help me this is the last thing to do before i can publish NYD_Drifting version 4 here on samp forum but if this aint working then i can't pub it here becuz i made lots of teles...
PLS HELP!

niels
Reply
#2

COME ON GUYS PLS I NEED HELP... THE ONE HELPS ME GETS +REP!!!
Reply
#3

ANYONE!!?
Reply
#4

eehm lol someway i have solved the problem someway i only removed jb form fses and updated LUXADMIN anyway PROBLEM SOLVED...
Reply
#5

PHP код:
    if ( dialogid == 200 )// teleports
    
{
        
/* if second button pressed */
        
if ( !response ) return SendClientMessageplayerid, -1"TDC_BOT: You have canceled" );
        if ( 
response )
        {
            if(
listitem == 0)
            {
                if(!
IsPlayerInAnyVehicle(playerid)){
                  
SetPlayerPos(playerid2610.5095,-2469.2476,3.0000);
                  
TogglePlayerControllable(playerid0);
                  
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
             else
             {
                 new 
veh GetPlayerVehicleID(playerid);
                 
SetVehiclePos(veh2610.5095,-2469.2476,3.0000);
                 
TogglePlayerControllable(playerid0);
                   
SetTimerEx("Unfreeze"20000"d"playerid);
                   
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                   
SetVehicleZAngle(veh0.0);
                   
LinkVehicleToInterior(veh0);
                   
SetVehicleVirtualWorld(veh0);
                   
PutPlayerInVehicle(playeridveh0);
            }
            return 
SendClientMessage(playerid0xFF0000FF"you have gone to the Boat Stunt!");
            }
            if(
listitem == 1)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                  
SetPlayerPos(playerid, -1398.103515,937.631164,1036.479125);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid15);
                
SetPlayerVirtualWorld(playerid0);
              }
              else
              {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh, -1398.103515,937.631164,1036.479125);
                
TogglePlayerControllable(playerid0);
                   
SetTimerEx("Unfreeze"20000"d"playerid);
                  
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh15);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
            return 
SendClientMessage(playerid0xFF0000FF"you have gone to the derby!");
            }
            if(
listitem == 2)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid, -2279.6414,2017.9814,265.6766);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh, -2279.6414,2017.9814,265.6766);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
               return 
SendClientMessage(playerid0xFF0000FF"you have gone to the Drag Race! now beat your opponent!");
            }
            if(
listitem == 3)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid, -2254.1101,-1141.3745,609.1346);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh, -2254.1101,-1141.3745,609.1346);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
               return 
SendClientMessage(playerid0xFF0000FF"you have gone to the driftking!");
            }
            if(
listitem == 4)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid2385.0134,1030.7831,10.8203);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh2385.0134,1030.7831,10.8203);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
               return 
SendClientMessage(playerid0xFF0000FF"you have gone to Las Venturas Tuning Garage!");
            }
            if(
listitem == 5)
            {
                   if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid1040.8041,-1032.2076,32.0148);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh1040.8041,-1032.2076,32.0148);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
               return 
SendClientMessage(playerid0xFF0000FF"you have gone to Los Santos Tuning Garage!");
            }
            if(
listitem == 6)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid, -1935.9169,234.4120,34.3125);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh, -1935.9169,234.4120,34.3125);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
               return 
SendClientMessage(playerid0xFF0000FF"you have gone to San Fierro Tuning Garage!");
            }
            if(
listitem == 7)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh, -2706.3394,218.2382,4.1797);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
               return 
SendClientMessage(playerid0xFF0000FF"you have gone to Wheel Arch Angels!");
            }
            if(
listitem == 8)
            {
                  if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid2644.9099,-2022.1721,13.5469);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh2644.9099,-2022.1721,13.5469);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
            return 
SendClientMessage(playerid0xFF0000FF"you have gone to Loco Low Co Tuning Garage!");
            }
            if(
listitem == 9)
            {
                if(!
IsPlayerInAnyVehicle(playerid)){
                
SetPlayerPos(playerid2885.2529,-2387.7244,7.8172);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetPlayerFacingAngle(playerid0.0);
                
SetPlayerInterior(playerid0);
                  
SetPlayerVirtualWorld(playerid0);
            }
            else
            {
                new 
veh GetPlayerVehicleID(playerid);
                
SetVehiclePos(veh2885.2529,-2387.7244,7.8172);
                
TogglePlayerControllable(playerid0);
                
SetTimerEx("Unfreeze"20000"d"playerid);
                
GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
                
SetVehicleZAngle(veh0.0);
                
LinkVehicleToInterior(veh0);
                
SetVehicleVirtualWorld(veh0);
                
PutPlayerInVehicle(playeridveh0);
            }
              return 
SendClientMessage(playerid0xFF0000FF"you have gone to the Kart Race! pick a kart!");
            }
               if(
listitem == 10)
            {
                  
ShowPlayerDialog(playerid300DIALOG_STYLE_LIST"Drifts""Drift1\nDrift2\nDrift3""ok""cancel");
            }
            if(
listitem == 11)
            {
                
ShowPlayerDialog(playerid400DIALOG_STYLE_LIST"Stunts""/stunt1\n/stunt2\n/stunt3{FF0000}""ok""cancel");
            }
            return 
1;
            }
        return 
1;
        }
    return 
1
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)