18.05.2011, 06:03
Hello! So, I wanna know how to stop all commands/teleports in DMs except /kill command! Can someone help me with this pls?
Here is my DM teleport:
Here is my DM teleport:
Код:
if (strcmp("/apb", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1493.9071,-1573.1179,67.2109); SetPlayerFacingAngle(playerid, 184.5182); SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid,"WELCOME TO ALL POINTS BULLETIN",5000,3); new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s has teleported to All Points Bulletin (/apb)", pname); SendClientMessageToAll(YELLOW, string); SendClientMessage(playerid,YELLOW,"Type /apbr for APB rules!"); SendClientMessage(playerid,YELLOW,"Type /apbc for APB commands!"); SendClientMessage(playerid,YELLOW,"Type /kill to leave APB!"); ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST,"{FF002B}ALL POINTS BULLETIN","Enforcer\nCriminal","Spawn","Cancel"); SetPlayerVirtualWorld(playerid, 0); return 1; }