[Tutorial] True Owner Stuff Command ...... :)
#1

This Command is For Level 10 Admins ! When we will Type This Command At The Top Of Our Head It will Show Server Owner As Red Colour ......... Now Going To Show The Step For Adding .........

Step 1

Quote:

//Add This At Top Of The Gamemode
new Text3D: OWNER[MAX_PLAYERS];

Step 2

For Showing The Text Server Owner On The Top Of Your Head

Quote:

CMD:trueowner(playerid, params[])
{
if(PlayerInfo[playerid][Level] == 10 || IsPlayerAdmin(playerid))
{
new string[256];
new kuldoneve[MAX_PLAYER_NAME];
SendClientMessage(playerid,0x99FF00AA,"Now Its Time To Rule Other'Z Welcome KiNg!");
GameTextForPlayer(playerid,"~r~Welcome Server Owner!", 5000, 1);
OWNER[playerid] = Create3DTextLabel("Server Owner", 0xFF0000FF, 0.0, 0.0, 2.0, 40, 0, 0);
Attach3DTextLabelToPlayer(OWNER[playerid],playerid, 0.0, 0.0, 0.4);
GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
format(string, sizeof(string), "-=%s=-{FFFFFF}Has Logged in As Server Owner",kuldoneve, playerid);
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(playerid,COLOR_ORANGE, "Welcome Owner,Never Forget [LB]BlAck_DeViL");
}
return 1;
}

Step 3

For Removing The Server Owner Text From The Top Of Your Head

Quote:

CMD:falseowner(playerid, params[])
{
if(PlayerInfo[playerid][Level] == 10 || IsPlayerAdmin(playerid))
{
new string[256];
new kuldoneve[MAX_PLAYER_NAME];
Delete3DTextLabel(OWNER[playerid]);
GameTextForPlayer(playerid,"~w~Server Owner Signing Out.....", 5000, 1);
GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));
format(string, sizeof(string), "-=%s=- Has Logged Out From OwNeR'Z panel.", kuldoneve, playerid);
SendClientMessageToAll(COLOR_YELLOW, string);
}
return 1;
}

I Think You Guys Will Like This
Reply
#2

I dont see why are you posting tutorial in map section. Also it lacks with explanations.
Reply
#3

Hey This is in Turtorial Section Only ...... Can't You See it ??
Reply
#4

This: http://forum.sa-mp.com/forumdisplay.php?f=70

There you have the tutorial section.
Reply
#5

oh sorry anyway say me how is this ?
Reply
#6

You need to explain things. For example:
Quote:

new Text3D: OWNER[MAX_PLAYERS];

This is name of the 3D text that we will be using in this tutorial
Quote:

new string[256];
new kuldoneve[MAX_PLAYER_NAME];
format(string, sizeof(string), "-=%s=-{FFFFFF}Has Logged in As Server Owner",kuldoneve, playerid);
SendClientMessageToAll(COLOR_YELLOW, string);

We are making a name string that we will use to format players name as "%s", which means that it will set the 3rd test as player name
Reply
#7

ohkey Later i will do it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)