new: bool:DM[MAX_PLAYERS];public OnPlayerConnect(playerid){ DM[playerid] = false; return 1;}public OnPlayerDisconnect(playerid, reason){ DM[playerid] = false; return 1;}if(strcmp(cmdtext, \"/dm\") == 0 ){ if(DM[playerid] == true) return SendClientMessage(playerid,\" Jelenleg DM zónában vagy! Kilépés /exitdm\"); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,34,1000); SetPlayerArmour(playerid, 100); SetPlayerPos(playerid,279.5034,1955.9962,17.6406); SendClientMessage(playerid,\"Csatlakoztál a Sniper DM-hez! Kilépéshez: /exitdm\"); DM[playerid] = true; return 1;}if(strcmp(cmdtext, \"/exitdm\") == 0){ if(DM[playerid] == false) return SendClientMessage(playerid,\"Nem vagy DM zónában!\"); DM[playerid] = false; SendClientMessage(playerid,\"Sikeresen kiléptél a DM zónából!\"); ResetPlayerWeapons(playerid); return 1;}public OnPlayerSpawn(playerid){ if(DM[playerid]) { GivePlayerWeapon(playerid,34,1000); SetPlayerArmour(playerid, 100); SetPlayerPos(playerid,279.5034,1955.9962,17.6406); } return 1;}
format(karakterlanc, sizeof(karakterlanc), \"Csatlakoztál a dm-be. DM-ben tartózkodók: %d\" valtozo);
new dm[MAX_PLAYERS];new count = 0;if(listitem == 0) { csapat1[playerid] = 1; count++; }
new DMben;if(strcmp(cmdtext, \"/dm\") == 0 ){ new string[128]; if(DM[playerid] == true) return SendClientMessage(playerid,\" Jelenleg DM zónában vagy! Kilépés /exitdm\"); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,34,1000); SetPlayerArmour(playerid, 100); SetPlayerPos(playerid,279.5034,1955.9962,17.6406); DMben++; DM[playerid] = true; format(string, sizeof(string), \"Csatlakoztál a Sniper DM-hez! (Jelenleg %d-en vannak a DM-ben!) Kilépéshez: /exitdm\", DMben); SendClientMessage(playerid,string); return 1;} if(strcmp(cmdtext, \"/exitdm\") == 0){ if(DM[playerid] == false) return SendClientMessage(playerid,\"Nem vagy DM zónában!\"); DMben--; DM[playerid] = false; SendClientMessage(playerid,\"Sikeresen kiléptél a DM zónából!\"); ResetPlayerWeapons(playerid); return 1;} public OnPlayerDisconnect(playerid, reason){ if(DM[playerid] == true) return DMben--; DM[playerid] = false; return 1;}
if(strcmp(cmdtext, \"/dm\") == 0 ){ if(DM[playerid] == true) return SendClientMessage(playerid,\" Jelenleg DM zónában vagy! Kilépés /exitdm\"); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,34,1000); SetPlayerArmour(playerid, 100); SetPlayerPos(playerid,279.5034,1955.9962,17.6406); DM[playerid] = true;newstr[128],count;for(new i; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)){ if(DM[playerid] == true) { count++; }}}format(str, sizeof str, \"Csatlakoztál a Sniper DM-hez! Kilépéshez: /exitdm (Jelenleg %d vannak a DM-ben!)\", count); SendClientMessage(playerid, -1, str); return 1;}