How to make a leave command
#1

I want to make a /leave cmd to leave some zones
For example
In a dm map or whatever,when they die,I want the player to get respawn in the same map and leave by typing /leave.
And when you type other cmd than /leave in a dm zone,it ignores the cmd and show a game text saying /leave
Plz help I need it for my server.
-----------------------
Better example
I made a map called /minigun
Players went their,when they die they get auto respawn in the same map (/minigun) and when they type command like /pm,the server ignores it and show gametext saying /leave and when they leave they get respawn anywhere in the city
Reply
#2

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
state a global variable getting if a player is in that minigun arena or not, then when he dies and his variable is 1 or whatever he gets teleported to there.

And for the leave cmd. Use OnPlayerCommandReceived, if this variable is 1... and the cmd isnt /leave, hell gets that message.

And when the player types /leave he gets that variable off, as 0 or anything, and you respawn them.
Can you give me the pawn code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)