Want to add showtagforplayer
#1

guys help i want to add a tag above the head with COD6 Tag Holder when i give someone the COD6 Tag holder by command /settag i mean i want the player who got /settag get Tag above his head with text called COD6 Tag Holder Help me please get for me the pwn code
Reply
#2

Код:
CMD:settag(playerid,params[])
{
     new Text3D:label = Create3DTextLabel("COD6 Tag Holder", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
return 1;
}

and you should show some own initiative, cause we dont make all code snippets for you.
Reply
#3

Cant see it upper my friend's head i saw it one time and when i restarted the server it's gone
Reply
#4

This is the command please tell me where can i put the code

Код:
CMD:settag(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
	    new tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
	    if(isnull(tmp) || isnull(tmp2) || !IsNumeric2(tmp2)) return SendClientMessage(playerid, red, "USAGE: /settag [playerid]");
		new player1 = strval(tmp), skin = strval(tmp2), string[128];
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
			CMDMessageToAdmins(playerid,"SETTAG");
			format(string, sizeof(string), "You have made \"%s's\" COD6 Tag holder '%d", pName(player1), skin); SendClientMessage(playerid,blue,string);
			if(player1 != playerid) { format(string,sizeof(string),"Administrator \"%s\" has made you COD6 Tag holder", pName(playerid), skin); SendClientMessage(player1,blue,string); }
   			return PlayerInfo[player1][dRank] = skin;
	    } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
	} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
I have 3 levels of /settag i want to put the tag for the 3 levels what can i do
Reply
#5

any help?
Reply
#6

One suggestion. Since you're using ZCMD, why do you use strtok? It's very slow and outdated. Switch to sscanf!
Reply
#7

I want to finish it with any way please help me
Reply
#8

Help please why just id 0 who have the Tag pleaaaase help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)