Need help with a little command.
#4

Quote:
Originally Posted by Mo3
What would be the whole script then? Iґm new to this crap and its pretty hard.
Lol I'm new myself, only had about 2 months experience, but it becomes easier :+

So basically, add this at the bottom of your script.

Код:
forward ChuckNorris();
public CheckNorris()
{
   for(new i = 0;i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i))
      {
        if(typed[i] == 1)
 	    ShowPlayerNameTagForPlayer(i, 0); // Will hide it
        return 1;
      }
   }
}
return 1;
}
Add this under OnPlayerConnect, OnPlayerDisconnect:

Код:
typed[playerid] =0;
The original command code you posted was fine so just use that, theres nothing much wrong with it.

Add this under OnGameModeInit or if it's a filterscript .. add under OnFilterScriptInit:

Код:
SetTimer("ChuckNorris",1000,1);
That's about it ... indentation will need to be fixed for your tabsize because SMF fucks it up.
Reply


Messages In This Thread
Need help with a little command. - by Striker_Moe - 28.08.2009, 16:10
Re: Need help with a little command. - by ded - 28.08.2009, 16:22
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 16:30
Re: Need help with a little command. - by ded - 28.08.2009, 16:42
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 16:53
Re: Need help with a little command. - by ded - 28.08.2009, 16:57
Re: Need help with a little command. - by Striker_Moe - 28.08.2009, 17:01
Re: Need help with a little command. - by ded - 28.08.2009, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)