3 asks
#1

after a lot of searching... i need to things... (if code then explain it too... or just explanation...)
1)how can i make a mute command + unmute
2)make a countdown(i searched this over a month) (/cd command /scd - stop CD command and countdowns in places like jail...)
3)can do commands, cant do commands.
Reply
#2

1. Look in any admin filterscript to see how the mute commands work.

2. http://forum.sa-mp.com/showthread.ph...mple+countdown

3. https://sampwiki.blast.hk/wiki/Creating_Commands

3 Answers.
Reply
#3

Quote:
Originally Posted by Stigg
Посмотреть сообщение
1. Look in any admin filterscript to see how the mute commands work.

2. http://forum.sa-mp.com/showthread.ph...mple+countdown

3. https://sampwiki.blast.hk/wiki/Creating_Commands

3 Answers.
thx... but in answer 2 the tutorial is about how to create a 3,2,1 Go countdown and not any number that i choose in my command... like if i do /cd 10 it will count from 10 to 1 and then GO!!!
and in answer 3... i ment like if you are in war or jail or what ever i will choose you cannot type any command...
Reply
#4

if you use some gm like LARP

use this for count..

Код:
 	if(strcmp(cmdtext,"/count",true) == 0)
 	{
 	if (PlayerInfo[playerid][pAdmin] >= 2)
	{
	    new Float:X, Float:Y, Float:Z;
		new pName[30];
		if (auts == false)
		{
			auts = true;
			GetPlayerName(playerid, pName, 30);
			format(string, 280, "*** %s started countdown.", pName);
			SendClientMessageToAll(COLOR_LIGHTBLUE, string);
			foreach (Player, i)
			{
   				GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 5 ~g~-",1000,3);
   				GetPlayerPos(i, X,Y,Z);
   			}
   			SetTimer("count4",1000,0);
   			SetTimer("count3",2000,0);
   			SetTimer("count2",3000,0);
   			SetTimer("count1",4000,0);
   			SetTimer("countgo",5000,0);
   			SetTimer("stop",6000,0);
		}
		}
		else
		{
			SendClientMessage(playerid, 0xFF9900AA, "Count started!");
			return 1;
		}
	}
Reply
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
1. Look in any admin filterscript to see how the mute commands work.

2. http://forum.sa-mp.com/showthread.ph...mple+countdown

3. https://sampwiki.blast.hk/wiki/Creating_Commands

3 Answers.
You forgot "Peace..."
Reply
#6

Quote:
Originally Posted by Markx
Посмотреть сообщение
You forgot "Peace..."
Its underneath my siggy...lolz
Reply
#7

3)can do commands, cant do commands.

pawn Код:
new Lol[MAX_PLAYERS] = 0;//Creating a variable for it

if(strcmp(cmdtext,"/setlolto1",true) == 0)
{
   Lol[playerid] = 1;//Setting it to 1 so he cannot execute the "/lol" command
    SendClientMessage(playerid, COLOR, "Lol set to 1");//A message so that he/she knows it has been activated    
}

if(strcmp(cmdtext,"/lol",true) == 0)
{
    if(Lol[playerid] == 1) return Something //Means he cannot execute the command
    SendClientMessage(playerid, COLOR, "Yay your 'lol' is 0 you receive this message"); //If is 'lol' is not 1 he will receive this without getting an error      
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)