If for DM's...
#1

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
Reply
#2

I can't really understand you...
Reply
#3

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
Reply
#4

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
Reply
#5

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. ::.");
Reply
#6

How do i create that :O Help on that ?
Reply
#7

Top of script:
pawn Код:
new indm[MAX_PLAYERS];
OnPlayerConnect AND kill command:
pawn Код:
indm[playerid] = 0;
When player entering the DM zone:
pawn Код:
indm[playerid] = 1;
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.
Reply
#8

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)