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!