#1

How can i make When player enters in dm he cant use any command but when exits he can.?
Reply
#2

someone?
Reply
#3

Easy make a bool when he enters the dm , and a leave cmd , except /leave he can't use any cmd.. and when he leaves the dm set the bool false.
Reply
#4

What?
Reply
#5

Quote:
Originally Posted by RuNBoY
Посмотреть сообщение
What?
Read the basic scripting on the samp wiki.
Reply
#6

Any more help?
Reply
#7

PHP код:
new InEvent[MAX_PLAYERS]; 
=> On top of your scripts.

At each command, add
PHP код:
"InEvent[playerid] == 1" 
.

If it's 1, it means that the player's in the event.

If it's 0, it means that the player's not in the event.

KillerDVX,
Reply
#8

so if i add this "InEvent[playerid] == 1" do my dm command he cant go somewhere else?
Reply
#9

When you create a DM event, and the player join it add :

PHP код:
InEvent[playerid] = 1
When he exits add :

PHP код:
InEvent[playerid] = 0
Reply
#10

It need to be like this?


Join:
Код:
CMD:dm1(playerid, params[])
{
	SendClientMessage(playerid, COLOR_YELLOW, "Welcome to DM1");
    InEvent[playerid] = 1;
	SetPlayerPos(Pos);
	return 1;
}
Leave:
Код:
CMD:Leave(playerid, params[])
{
    InEvent[playerid] = 0;
	SetPlayerPos(playerid, pos);
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)