Help with cmd
#1

Guys
In my server
I released a dm map
But when u die u get spawn anywhere in the city
How can I make it when he die gets spawned in the same dm map and ignores any other cmd he types except /leave and to get out of it he must type /leave
Plz guys dont ignore help me
+1rep for who help
+1rep for who can make the lines for me (am newbie scripter)
Better explain: I went to /dm
Some1 killed me, I want to continue to be spawned in the same map (/dm) without typing the cmd again
And when I want to go to other place or type any other comman it ignores it and shows /leave
And when u type /leave it gets u put of the map
Reply
#2

On top of script
Код:
new dm[MAX_PLAYERS];
OnPlayerConnect:
Код:
dm[playerid] = 0;
When player type command for dm zone:
Код:
dm[playerid] = 1;
On Every other command:
Код:
if(dm[playerid] == 1) return SendClientMessage(playerid, -1, "Type /leave first");
On leave command:
Код:
dm[playerid] = 0;
OnPlayerSpawn after everything else write this:
Код:
if(dm[playerid] == 1)
{
//Teleport and give him weapon for dm zone
}
Reply
#3

Can u plz combine them all together ? In a code?
And if I want to make instead of dm, I want it to be minigun and gives him minigun,make again plz and make //here you can change weapon id (in the giveplayerweapon line)
Thx
+1 rep for u
Reply
#4

You have to do some things alone, this is very simple...give me your command for dm
Reply
#5

The cmd is /minigun
When any1 go to minigun,disarm him first then give him minigun
And when leave disarm him from minigun
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)