Improving my fly command please help
#5

Change it to this one

pawn Код:
// Let the player use a jetpack
COMMAND:fly(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/fly", 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)
        {
            // Equip the player with a jetpack
            SetPlayerSpecialAction(playerid, 2);
        }
        else
            return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
And don't double post
Reply


Messages In This Thread
Improving my fly command please help - by NinjaChicken - 29.07.2012, 11:07
Re: Improving my fly command please help - by Finn - 29.07.2012, 11:29
Re: Improving my fly command please help - by NinjaChicken - 29.07.2012, 11:35
Re: Improving my fly command please help - by NinjaChicken - 29.07.2012, 12:07
Re: Improving my fly command please help - by Private200 - 29.07.2012, 12:23
Re: Improving my fly command please help - by NinjaChicken - 29.07.2012, 12:27
Re: Improving my fly command please help - by Private200 - 29.07.2012, 12:30
Re: Improving my fly command please help - by NinjaChicken - 29.07.2012, 12:42
Re: Improving my fly command please help - by NinjaChicken - 29.07.2012, 13:27
Re: Improving my fly command please help - by NinjaChicken - 29.07.2012, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)