SA-MP Forums Archive
Deathmatching + stunting - 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: Deathmatching + stunting (/showthread.php?tid=142661)



Deathmatching + stunting - Cardinaal - 19.04.2010

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.