Admin rights!
#10

Quote:
Originally Posted by Max_Coldheart
Посмотреть сообщение
This is not a good way to do it.
Better do it like:
pawn Код:
#define INFINITY 10000000 //This goes to top of script

CMD:god(playerid, params[])  //Defining the command name (requires ZCMD)
{
    if(IsPlayerAdmin(playerid)) //Checking if player is RCON admin
    {
        SetPlayerHealth(playerid, INFINITY);  //Setting health to defined amount
        SetPlayerArmour(playerid, INFINITY);  //Setting armour to defined amount
    }
    else //If he is NOT RCON admin
    {
        SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!"); //Sends a message to the player
    }
    return 1; //Tells the compiler that it compiled successfully
}
Whats the difference between yours and mines? You simply replaced my values in which what you've defined. They both work. Your method though is an example of loading a callback, within a callback. Which is totally useless.

And Samety, if your having trouble with the system PM me your Teamviewer information, I'd be more than willing to help.

Quote:
Originally Posted by Double-O-Seven
Посмотреть сообщение
This does not matter at all if you are using it only there, also the actual value doesn't matter, it just must be high...
no need to define a makro for this...
Right on Double-O!
Reply


Messages In This Thread
Admin rights! - by samtey - 30.07.2011, 08:28
Re: Admin rights! - by Kush - 30.07.2011, 08:37
AW: Admin rights! - by samtey - 30.07.2011, 08:47
Re: Admin rights! - by Markx - 30.07.2011, 08:52
Re: Admin rights! - by Kush - 30.07.2011, 08:53
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 08:55
AW: Admin rights! - by samtey - 30.07.2011, 08:56
Re: Admin rights! - by Double-O-Seven - 30.07.2011, 08:57
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 09:00
Re: Admin rights! - by Kush - 30.07.2011, 09:00
Re: Admin rights! - by Max_Coldheart - 30.07.2011, 09:04
AW: Admin rights! - by samtey - 30.07.2011, 09:07
Re: AW: Admin rights! - by Kush - 30.07.2011, 09:12
Re: Admin rights! - by Markx - 30.07.2011, 09:19
AW: Admin rights! - by samtey - 30.07.2011, 09:19
Re: AW: Admin rights! - by Kush - 30.07.2011, 09:37
Re: AW: Admin rights! - by Markx - 30.07.2011, 10:08
AW: Re: AW: Admin rights! - by samtey - 30.07.2011, 10:22
Re: AW: Admin rights! - by Kush - 30.07.2011, 15:08

Forum Jump:


Users browsing this thread: 2 Guest(s)