[Pedido] Ajuda grand
#4

Acho que assim fica bom, pois envia o aviso do comando para os admins, logo em seguida verifica se o player й VIP, caso for verdade ele continua na estrutura condicional...



pawn Код:
COMMAND:jetpack(playerid, params[])
{
    // Send the command to all admins so they can see it
    SendAdminText(playerid, "/jetpack", params);

    if (!IsPlayerVIP(playerid))
         return SendClientMessage(playerid, Default, "[Erro]{FFFFFF} Vocк nгo й vip.");

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 3
        if (APlayerData[playerid][PlayerLevel] >= 2)
        {
            // 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;
}
Reply


Messages In This Thread
Ajuda grand - by yoki - 30.05.2014, 03:33
Re: Ajuda grand - by victorlus - 30.05.2014, 03:44
Re: Ajuda grand - by Smoking_Script - 30.05.2014, 04:12
Re: Ajuda grand - by Schocc - 30.05.2014, 06:57
Re: Ajuda grand - by PT - 30.05.2014, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)