13.07.2010, 08:56
Someone help to make dm zones?? I know nothing with DM Zones i just make dms :L
//Top of on you'r script new DMZone[MAX_PLAYERS]; #define TELEWARN 1999 //onplayercommandtext public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/mycommand", true) == 0) { if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n-Sorry But you can't Teleport to another area while in a dm. Type /kill to leave the DM.","Kill Me!","Cancel"); //something here return 1; } if(strcmp(cmdtext, "/kill", true) == 0) { DMZone[playerid] = 0; SetPlayerHealth(playerid,0); ResetPlayerWeapons(playerid); return 1; } if(strcmp(cmdtext, "/leavedm", true) == 0) { DMZone[playerid] = 0; SetPlayerHealth(playerid,0); ResetPlayerWeapons(playerid); return 1; } return 0; } //ondialogresponse public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (dialogid == TELEWARN) { if(response == 1) { SetPlayerHealth(playerid,0); DMZone[playerid] = 0; } return 1; } return 0; }
SetPVarInt(playerid, "InDM", true);
SetPVarInt(playerid, "InDM", false);
if(GetPVarInt(playerid, "InDM")) return SendClientMessage(playerid, 0xFFFFFFFF, "You cannot use commands while you're in a deathmatch zone. Use /leavedm to exit!");
C:\Users\Charlie\Desktop\SAMP Server\gamemodes\SFTDM.pwn(571) : error 017: undefined symbol "GetPVarInt" C:\Users\Charlie\Desktop\SAMP Server\gamemodes\SFTDM.pwn(576) : error 017: undefined symbol "SetPVarInt" C:\Users\Charlie\Desktop\SAMP Server\gamemodes\SFTDM.pwn(583) : error 017: undefined symbol "SetPVarInt" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.