how to add this
#10

pawn Код:
COMMAND:announce(playerid, params[])
{
    SendAdminText(playerid, "/announce", params);

    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Check if the player's admin-level is at least 1
        if (APlayerData[playerid][PlayerLevel] >= 1)
        {
                        GameTextForAll(params,4000,3);
        }
        else
                    return 0;
    }
    else
        return 0;

    // Let the server know that this was a valid command
    return 1;
}
this is the code from my server using ppc_trucking gamemode
Reply


Messages In This Thread
how to add this - by [FoR]EveR - 17.03.2012, 08:51
Re: how to add this - by GNGification - 17.03.2012, 08:58
Re: how to add this - by [FoR]EveR - 17.03.2012, 08:59
Re: how to add this - by GNGification - 17.03.2012, 09:02
Re: how to add this - by Ronaldo_raul™ - 17.03.2012, 09:02
Re: how to add this - by [FoR]EveR - 17.03.2012, 09:06
Re: how to add this - by [FoR]EveR - 17.03.2012, 09:08
Re: how to add this - by JJB562 - 17.03.2012, 09:11
Re: how to add this - by [FoR]EveR - 17.03.2012, 09:13
Re: how to add this - by tyler12 - 17.03.2012, 09:17

Forum Jump:


Users browsing this thread: 1 Guest(s)