Hi I'm new And I need some help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hi I'm new And I need some help (
/showthread.php?tid=641179)
Hi I'm new And I need some help -
Deividt - 12.09.2017
well hi to all I've a question, I'm a beginner in script, also I read some tutorials, guides from this forum, but to be honest I don't have any idea how to script an "Admin's Tag" for example when I write any message on the chat (server running) a tag called "[ADMIN]" Appear, I want to make it as a cmd /tag for show the tag and again /tag for hide the tag.
But like I said I don't have any idea for script this cmd, can someone help me pls?
ty for the attention
Re: Hi I'm new And I need some help -
JesterlJoker - 12.09.2017
There are so many ways to do this
PHP код:
SetPlayerName(playerid, "[TAG]Your name");
or this
PHP код:
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS=0)
in which you will need to create a timer to keep this on loading that it follows the player through and through which eats up memory
To call commands you can do this
PHP код:
OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/tag", true) == 0)
{
}
return 1;
}
I don't know much with that OnPlayerCommand thing
I use other includes
such IZCMD, ZCMD and SCMD the last is the one I use and so far what I like the there is also Y-Less's YCMD
[PHP]
CMD:tag(cmdid, playerid, params[])
{
// Your code here
return 1;
}
[PHP]
That's all the tips I could do, I will not code because it does not justify anything... Just keep reading and you'll understand