Script for making sa-mp films?
#4

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
Reply


Messages In This Thread
Script for making sa-mp films? - by Dwigatjel - 13.05.2010, 16:52
Re: Script for making sa-mp films? - by Anthony_Brassi - 13.05.2010, 17:25
Re: Script for making sa-mp films? - by Mujib - 13.05.2010, 17:55
Re: Script for making sa-mp films? - by Anthony_Brassi - 13.05.2010, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)