Want to add showtagforplayer -
joykingstone - 06.07.2013
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
AW: Want to add showtagforplayer -
Blackazur - 06.07.2013
Код:
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.
Re: Want to add showtagforplayer -
joykingstone - 06.07.2013
Cant see it upper my friend's head i saw it one time and when i restarted the server it's gone
Re: Want to add showtagforplayer -
joykingstone - 06.07.2013
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
Re: Want to add showtagforplayer -
joykingstone - 06.07.2013
any help?
Re: Want to add showtagforplayer -
Konstantinos - 06.07.2013
One suggestion. Since you're using ZCMD, why do you use strtok? It's very slow and outdated. Switch to sscanf!
Re: Want to add showtagforplayer -
joykingstone - 06.07.2013
I want to finish it with any way please help me
Re: Want to add showtagforplayer -
joykingstone - 06.07.2013
Help please why just id 0 who have the Tag pleaaaase help