If for DM's... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: If for DM's... (
/showthread.php?tid=272526)
Please help!! DM /exit! -
fie - 28.07.2011
I have made the Area51 dm so it tp's you there on random spawn and gives you weapons.
Now.
i have the /teles which brings a teleport menu up.
When they select to play on a Deathmatch on the /teles menu i want it so when they try and type /teles in the DM it pops up saying you cannot do this in a Deathmatch! type /kill to leave
is there a way? if so how i do it?

If so it would be a big help
Thanks
Re: If for DM's... -
Mean - 28.07.2011
I can't really understand you...
Re: If for DM's... -
fie - 28.07.2011
Basicly when they enter a DM zone it wont let them use the command /teles
and when they try it says you need to type /kill because you are in a DM zone
Re: If for DM's... -
fie - 28.07.2011
Anyone? Please you have helped me so far i would be really greatful if you could see if it is possible to do this
thanks
Re: If for DM's... -
Kingunit - 28.07.2011
You need to create something like;
pawn Код:
if(Player[playerid][Event] = 1) return SendClientMessage(playerid,COLOR_RED,".:: You can't use this command right now. ::.");
Re: If for DM's... -
fie - 28.07.2011
How do i create that :O Help on that ?
Re: If for DM's... -
Amit_B - 28.07.2011
Top of script:
OnPlayerConnect AND kill command:
When player entering the DM zone:
The lines above creates a variable which its value is 1 if the player is on Deathmatch zone or 0 if he isn't.
Now, on the teles command add:
pawn Код:
if(indm[playerid]) return SendClientMessage(playerid,0xff0000ff,"You cannot use this command on this area, use /kill to quit");
This should work.
Re: If for DM's... -
Kaperstone - 28.07.2011
lol...fail..
somone asked it already...
i mean... the same question in the same page...
LINK
http://forum.sa-mp.com/showthread.ph...27#post1315727
go to page 2, i've explaned all about it there...