SA-MP Forums Archive
Tag - 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: Tag (/showthread.php?tid=612471)



Tag - Hunud - 18.07.2016

How to do when player is example in SniperDM to show in player name that he is in dm example [SDM][Hunud]:


Re: Tag - GangstaSunny - 18.07.2016

PHP код:
new string[24+6], name[MAX_PLAYER_NAME];
GetPlayerName(playeridnamesizeof(name));
format(string,sizeof(string),"[SDM]%s",name);
SetPlayerName(playeridstring); 
If you save your player accounts you have to set the name back if he disconnects.


Re: Tag - Hunud - 18.07.2016

Quote:
Originally Posted by GangstaSunny
Посмотреть сообщение
PHP код:
new string[24+6], name[MAX_PLAYER_NAME];
GetPlayerName(playeridnamesizeof(name));
format(string,sizeof(string),"[SDM]%s",name);
SetPlayerName(playeridstring); 
If you save your player accounts you have to set the name back if he disconnects.
this code not checking is player in SniperDM to set his tag


Re: Tag - UltraScripter - 18.07.2016

PHP код:
if(InDm[playerid] == 1)
{
     new 
name[24], str[30];
     
GetPlayerName(playeridnamesizeof(name));
     
format(strsizeof(str), "[SDM]%s"name);
     
SetPlayerName(playeridstr);




Re: Tag - GangstaSunny - 18.07.2016

Brah... i think you can do this by yourself. I dont know your script ffs