/car Problem and random messages
#5

pawn Код:
THIS IS THE CAR COMMAND

// Lets the player choose a car to spawn (in a split list which shows only 10 cars at a time)
COMMAND:car(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/car", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
                CarList_Create(playerid); // Create a list of cars (only the first 10 cars) and show the dialog so the player can choose a car
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}

THIS IS THE PLANE COMMAND

// Lets the player choose a plane to spawn (in a split list which shows only 10 planes at a time)
COMMAND:plane(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/plane", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
                PlaneList_Create(playerid); // Create a list of planes (only the first 10 planes) and show the dialog so the player can choose a plane
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}

This is the trailer command (not working too)

// Lets the player choose a trailer to spawn (in a split list which shows only 10 trailers at a time)
COMMAND:trailer(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/trailer", params);

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
            // Make sure the player isn't inside a vehicle
            if (GetPlayerVehicleID(playerid) == 0)
                TrailerList_Create(playerid); // Create a list of trailers (only the first 10 trailers) and show the dialog so the player can choose a trailer
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
Help me please , when i type the cmd , it doesent tell anything , it just dont open the list of cars
Reply


Messages In This Thread
/car Problem and random messages - by Private200 - 10.08.2012, 08:06
Re: /car Problem and random messages - by Vince - 10.08.2012, 08:09
Re: /car Problem and random messages - by Private200 - 10.08.2012, 08:10
Re: /car Problem and random messages - by McCurdy - 10.08.2012, 09:51
Re: /car Problem and random messages - by Private200 - 13.08.2012, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)