SA-MP Forums Archive
Script for making sa-mp films? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script for making sa-mp films? (/showthread.php?tid=147653)



Script for making sa-mp films? - Dwigatjel - 13.05.2010

Hi all. I'm new in this forum.
I want to know is there any script for samp what can disable chat and players name above players.
I'm looking for it because I will make film in samp and I don't want see needless texts



Re: Script for making sa-mp films? - Anthony_Brassi - 13.05.2010

if(strcmp(cmd, "/nametagsoff", true) == 0)
{
ShowNameTags(0);
}
& to turn on

if(strcmp(cmd, "/nametagson", true) == 0)
{
ShowNameTags(1);
}



btw, idk if this will work



Re: Script for making sa-mp films? - Mujib - 13.05.2010

Quote:
Originally Posted by Anthony_Brassi
if(strcmp(cmd, "/nametagsoff", true) == 0)
{
ShowNameTags(0);
}
& to turn on

if(strcmp(cmd, "/nametagson", true) == 0)
{
ShowNameTags(1);
}



btw, idk if this will work
pawn Код:
new nametags = 1;
if(strcmp(cmd, "/nametags", true) == 0)
{
  if(nametags == 0)
  {
    ShowNameTags(1);
    nametags = 1;  
    SendClientMessage(playerid, 0xFFFF00AA, "Nametags are turned ON now!");  
  }
  if(nametags == 1)
  {
    ShowNameTags(0);
    nametags = 0;
    SendClientMessage(playerid, 0xFFFF00AA, "Nametags are turned OFF now!");
  }
}
This is a more advanced version, add it under "OnPlayerCommandText".

Greets,
Mujib



Re: Script for making sa-mp films? - Anthony_Brassi - 13.05.2010

Quote:
Originally Posted by Mujib
Quote:
Originally Posted by Anthony_Brassi
if(strcmp(cmd, "/nametagsoff", true) == 0)
{
ShowNameTags(0);
}
& to turn on

if(strcmp(cmd, "/nametagson", true) == 0)
{
ShowNameTags(1);
}



btw, idk if this will work
pawn Код:
new nametags = 1;
if(strcmp(cmd, "/nametags", true) == 0)
{
  if(nametags == 0)
  {
    ShowNameTags(1);
    nametags = 1;
    SendClientMessage(playerid, 0xFFFF00AA, "Nametags are turned ON now!");  
  }
  if(nametags == 1)
  {
    ShowNameTags(0);
    nametags = 0;
    SendClientMessage(playerid, 0xFFFF00AA, "Nametags are turned OFF now!");
  }
}
This is a more advanced version, add it under "OnPlayerCommandText".

Greets,
Mujib
yeah, i just threw it together, didn't bother doing that