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(playerid, name, sizeof(name));
format(string,sizeof(string),"[SDM]%s",name);
SetPlayerName(playerid, string);
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(playerid, name, sizeof(name));
format(string,sizeof(string),"[SDM]%s",name);
SetPlayerName(playerid, string);
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(playerid, name, sizeof(name));
format(str, sizeof(str), "[SDM]%s", name);
SetPlayerName(playerid, str);
}
Re: Tag -
GangstaSunny - 18.07.2016
Brah... i think you can do this by yourself. I dont know your script ffs