Help with cmd - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with cmd (
/showthread.php?tid=504039)
Help with cmd -
KrYpToN98 - 01.04.2014
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
Re: Help with cmd -
CroM256 - 01.04.2014
On top of script
Код:
new dm[MAX_PLAYERS];
OnPlayerConnect:
When player type command for dm zone:
On Every other command:
Код:
if(dm[playerid] == 1) return SendClientMessage(playerid, -1, "Type /leave first");
On leave command:
OnPlayerSpawn after everything else write this:
Код:
if(dm[playerid] == 1)
{
//Teleport and give him weapon for dm zone
}
Re: Help with cmd -
KrYpToN98 - 01.04.2014
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
Re: Help with cmd -
CroM256 - 01.04.2014
You have to do some things alone, this is very simple...give me your command for dm
Re: Help with cmd -
KrYpToN98 - 01.04.2014
The cmd is /minigun
When any1 go to minigun,disarm him first then give him minigun
And when leave disarm him from minigun