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



Tag system - Fadchor - 18.08.2013

Hi im in mobile but i ned a tag system like when you type in game /tag then you can type what tag to you want. You know?
I vang fond it enywhrre


Re: Tag system - Sascha - 18.08.2013

something like this?
pawn Код:
cmd:tag(playerid, params[])
{
  new str[50];
  if(!sscanf(params, "s[50]", str))
  {
    new name[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s%s", str, name);
    SetPlayerName(playerid, string);
  }
  return 1;
}
if you don't have the sscanf and zcmd plugins:
http://forum.sa-mp.com/showthread.ph...ghlight=sscanf
http://forum.sa-mp.com/showthread.ph...highlight=zcmd