Deathmatching + stunting
#1

K so I got a stunting server and I wanna have like /dm and all of those things...

All I want you to teach me is how to script so example if a player is in /dm he can't use any other cmds which would by any way mean he can teleport out...
So example:
Код:
OnPlayerCmd(cmdtext, /sfairport, 10) == 0)
IsPlayerInDM( idk, idk, idk)
{
//Here comes if he is inside a deathmatch area
SendClientMessage(playerid, COLOR_ERROR, "You cannot teleport when you are inside a deathmatch, use /leavedm")
}
else SetPlayerPos, SendClientMessage
I need all those things explaind, including defines, new, forwards.

I would really appriciate your help.
Peace.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)