19.04.2010, 16:06
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:
I need all those things explaind, including defines, new, forwards.
I would really appriciate your help.
Peace.
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 would really appriciate your help.
Peace.