Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define MAX_PHONE_INT 10
- new RandColor [] = {
- {0xFF00FA},
- {0xFF15FD},
- {0xFF9854745854FD}
- };
- public OnFilterScriptInit() {
- return 0;
- }
- public OnFilterScriptExit() {
- return 0;
- }
- public OnPlayerConnect(playerid) {
- new lstring[128];
- format(lstring, sizeof(lstring), "The player %s joined the game...!", Gn(playerid));
- new Random = random(sizeof(RandColor));
- SendClientMessageToAll(RandColor[Random], lstring);
- //**********IDsystem**********\\
- for (new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i)) {
- SetPlayerScore(playerid, playerid * 5487);
- }
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[]) {
- if(strcmp(cmdtext, "/AllID", true)) {
- new Random = random(sizeof(RandColor));
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i)) {
- new IDstring[128];
- format(IDstring, sizeof(IDstring), "NickName : %s ; ID : %d [ NUMBER - %d ]", Gn(i), GetPlayerScore(i), i);
- SendClientMessage(playerid, RandomColor[Random], IDstring);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/GetMoneyID", true)) {
- new ID[128];
- ID = strtok(cmdtext, idx);
- new Random = random(sizeof(RandColor));
- if(!strlen(ID)) return SendClientMessage(playerid, RandColor[Random], "The ID is empty... USEGE : /GetMoneyID [ID] [ ( ( SCORE ID ) ) ] ");
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i)) {
- SendClientMessage(playerid, RandColor[Random], "Searching...");
- if(strcmp(i, GetPlayerScore(i))) {
- new MoneyString[128];
- format(MoneyString, sizeof(MoneyString), "Money : %d", GetPlayerMoney(i));s
- SendClientMessage(playerid, RandColor[Random], MoneyString);
- break;
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/ChangeID", true)) {
- new IDx[128];
- IDx = strtok(cmdtext, idx);
- if(!strlen(IDx)) return SendClientMessage(playerid, 0xFF00FA, "ERROR.USEGE : /ChangeID [ ëôåì ëîä ]");
- if(strval(IDx) < 5487 || strval(IDx) < 10) return SendClientMessage(playerid, 0xFF00FA, "ERROR.NUMBER.BIG/SMALL : The IDx is bigger then 5487 or smaller then 10");
- SetPlayerScore(playerid, playerid * strval(IDx));
- GivePlayerMoney(playerid, -10000);
- AddToThePoliceSuspectList(playerid, "[tz] : ID - [ Not real ]");
- return 1;
- }
- if(strcmp(cmd, "/IDinfo", true)) {
- new ID[128];
- ID = strtok(cmdtext, idx);
- for(new i = 0; i < MAX_PLAYERS; i++) {
- if(IsPlayerConnected(i)) {
- SendClientMessage(playerid, 0xFF00FA, "Searching...");
- if(strcmp(strval(ID), GetPlayerScore(i), true)) {
- new IDname[MAX_PLAYER_NAME], IDphone[MAX_PHONE_INT], IDnameString[128], IDphoneString[128];
- IDname = GetPlayerName(i);
- IDphone = GetplayerPhoneNumber(i);
- format(IDnameString, sizeof(IDnameString), "|-NAME : %s-|", IDname);
- format(IDphoneString, sizeof(IDphoneString), "|-PHONE : %d-|", IDphone);
- SendClientMessage(playerid, 0xFF00LD, "|---Suspect-Info---|");
- SendClientMessage(playerid, 0xFF00LD, IDnameString);
- SendClientMessage(playerid, 0xFF00LD, IDphoneString);
- SendClientMessage(playerid, 0xFF00LD, "|---Suspect-Info---|");
- break;
- }
- }
- }
- return 1;
- }
- return 0;
- }
- stock Gn(playerid) {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- stock AddToThePoliceSuspectList(playerid, string[]) {
- new reason[128];
- reason = string;
- new LineNAME[128], LineTEXT[128];
- format(LineNAME, sizeof(LineNAME), "%d", GetPlayerScore(playerid));
- format(LineTEXT, sizeof(LineTEXT), "%s", strval(reason));
- dini_Set("Police/Suspects/SuspectList.ini", LineNAME, LineTEXT);
- return 1;
- }
- /////////////////////////////////////////////////////
- using Sytem;
- public class Game
- {
- enum SomeUsername = { "SliPeR45", "SDMasterYoda", "nippbit" };
- enum SomePassword = { Password1 = "123.201", Password2 = "123.2011", Password3 = "123.20123" };
- enum ServerStats = { ServerName = "MineYourMind.Co.IL", ServerSlots = "150", AllowedMobs = "true", AloowedMonsters = "true", PVP = "false", AllowedFly = "false", GameMode = "0");
- public static int Main(string[] args) {
- Console.WriteLint("Welcome to the Minecraft game luncher");
- Console.Write("Please write your username:");
- string username = Console.ReadLine();
- Console.Write("Please enter your password:");
- string password = Console.ReadLine();
- if ( username == SomeUSername.SliPeR45 |= SomeUSername.SDMasterYoda |= SomeUSername.nippbit && password == SomePassword.Password1 |= SomePassword.Password2 |= SomePassword.Password3)
- Console.WriteLine("Logged!!");
- Console.Clear();
- Console.WriteLine("The server info [ stats ] : ");
- Console.WriteLine("ServerName = {0} [ : Command = [ SnChange ] : ]", ServerStats.ServerName);
- Console.WriteLine("ServerSlots [ MaxSlots ] = {0} [ : Command = [ MsChange ] : ]", ServerStats.ServerSlots);
- Console.WriteLine("AllowedMobs = {0} [ : Command = [ AmChange ] : ]", ServerStats.AllowedMobs);
- Console.WriteLine("AllowedMonsters = {0} [ : Command = [ AmoChange ] : ]", ServerStats.AllowedMonsters);
- Console.WriteLine("PvP = {0} [ : Command = [ PvpChange ] : ]", ServerStats.PVP);
- Console.WriteLine("AllowedFly = {0} [ : Command = [ AfChange ] : ]", ServerStats.AllowedFly);
- Console.WriteLine("GameMode = {0} [ : Command = [ GmChange ] : ]", ServerStats.GameMode);
- Console.Write(".");
- Thread.Sleep(700);
- Console.Write(".");
- Thread.Sleep(600);
- Console.Write(". \n");
- Console.WriteLine("Please enter command:");
- string Command = Console.ReadLine();
- if(Command == "SnChange") {
- Console.WriteLine("Enter the new server name");
- string NewServerName = Console.ReadLine();
- ServerStats.ServerName = NewServerName;
- } else if ( Command == "MsChange" ) {
- Console.WriteLine("Enter the new number of slots:);
- int NewMaxSlots = int.Prase(Console.ReadLine());
- ServerStats.ServerSlots = NewMaxSlots;
- } else if ( Command == "AmChange" ) {
- Console.WriteLine("Enter true or false");
- string NewMonsterOption = Conaole.ReadLine();
- if( NewMonsterOption == "True" |= "False") {
- ServerStats.AllowedMonsters = NewMonsterOption;
- } else {
- StopAll();
- }
- } else if ( Command == "AmoChange" ) {
- Console.WriteLine("Enter true or false");
- string NewMobOption = Console.ReadLine;
- if ( NewMobOption == "True" |= "False" ) {
- ServerStats.AllowedMob = NewMobOption;
- } else {
- StopAll();
- }
- } else if ( Command == "PvpChange" ) {
- Console.WriteLine("Enter True or False");
- string NewPvpOption = Console.ReadLine();
- if ( NewPvpOption == "True" |= "False" ) {
- ServerStats.AllowedPVP = NewPvpOption;
- } else {
- StopAll();
- }
- } else if ( Command == "AfChange" ) {
- Console.WriteLine("Enter True or False");
- string NewFlyOption = Console.ReadLine();
- if ( NewFlyOption == "True" |= "False" ) {
- ServerStats.AllowedFly = NewFlyOption;
- } else {
- StopAll();
- }
- } else if ( Command == "GmChange" ) {
- Console.WriteLine("Enter True or False");
- string NewGameModeOption = Console.ReadLine();
- if ( NewGameModeOption == "True" |= "Flase" ) {
- ServerStats.GameMode = NewGameModeOption;
- } else {
- StopAll();
- }
- }
- } else {
- Console.WriteLine("Cannot logged!");
- }
- return 0;
- }
- public static StopAll() return Console.ReadKey();
- }
Add Comment
Please, Sign In to add comment