Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Includes //
- #include <a_samp>
- #include <zcmd>
- #include <foreach>
- #include <a_gametext>
- // Team Defines //
- #define TEAM_BALLA 0
- #define TEAM_GROVE 1
- // Dialog Defines //
- #define DIALOG_CMDS 0
- #define DIALOG_CMDS1 1
- #define DIALOG_CMDS2 2
- #define DIALOG_CMDS3 3
- #define DIALOG_CMDS4 4
- #define DIALOG_CMDS5 5
- #define DIALOG_HELP 6
- #define DIALOG_CREDITS 7
- #define DIALOG_UPDATES 8
- #define DIALOG_RULES 9
- #define DIALOG_SHOP 10
- #define DIALOG_TEAM 11
- // Other Defines //
- #define SCM SendClientMessage
- // Forwards //
- forward SendMSG();
- forward RandomMessages();
- forward PayDay();
- // News //
- new gTeam[MAX_PLAYERS];
- new string[500];
- new Text:CNAME;
- new Text:CWEBS;
- new RandomMSG[][] =
- {
- "{E10000}<!> {FFFFFF}Welcome to the {00FF22}Los Santos{F81414} Gang Chaos.",
- "{E10000}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
- "{E10000}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
- "{E10000}<!> {FFFFFF}Need help? use {00CED1}/helpme [text] {FFFFFF}to ask from admins",
- "{E10000}<!> {FFFFFF}Are you new here? use {00CED1}/help /cmds /rules",
- "{E10000}<!> {FFFFFF}Intrested to be an admin? apply at our forums {00CED1}www.coming-soon.com.",
- "{E10000}<!> {FFFFFF}Donate to the server and get cool stuffs as rewards like {00CED1}admin status, moderator status and VIP status!",
- "{E10000}<!> {FFFFFF}Donate us to keep the server alive! and get an entry pass to the {00CED1}VIP Home!"
- };
- new Float:GroveRandom[][] =
- {
- {2523.4185,-1678.6345,19.9302,89.6241}, // Grove Random Spawn 1
- {2489.7378,-1647.3156,14.0772,175.1415}, // Grove Random Spawn 2
- {2459.4932,-1690.5696,13.5444,354.0331}, // Grove Random Spawn 3
- {2512.3826,-1651.0084,13.9556,129.3711} // Grove Random Spawn 4
- };
- new Float:BallaRandom[][] =
- {
- {2222.9438,-1174.6432,25.7266,354.9499}, // Ballas Random Spawn 1
- {2232.1135,-1177.3505,29.8044,354.6366}, // Ballas Random Spawn 2
- {2201.6777,-1176.6641,29.7969,356.5166}, // Ballas Random Spawn 3
- {2201.6277,-1152.4890,25.8717,274.8809} // Ballas Random Spawn 4
- };
- new GroveSkin[] =
- {
- 105, // Grove Skin Type 1
- 106, // Grove Skin Type 2
- 107 // Grove Skin Type 3
- };
- new BallaSkin[] =
- {
- 102, // Ballas Skin Type 1
- 103, // Ballas Skin Type 2
- 104 // Ballas Skin Type 3
- };
- // Stocks //
- stock PlayerName(playerid)
- {
- new playerName[MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, playerName, sizeof(playerName));
- return playerName;
- }
- public PayDay()
- {
- foreach(Player, i)
- {
- GivePlayerMoney(i, 15000);
- ShowPlayerDialog(i, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - PayDay","Hello guys, It is PayDay !\nYou received 15000$ Cash!","Done","Close");
- }
- return 1;
- }
- public SendMSG()
- {
- new randMSG = random(sizeof(RandomMSG));
- SendClientMessageToAll(-1, RandomMSG[randMSG]);
- }
- public OnGameModeInit()
- {
- print("\n--------------------------------------");
- print(" LSGC Version 0.1 - Loaded ");
- print("--------------------------------------\n");
- SetGameModeText("GangWars/TDM/DM v0.1");
- SetTimer("SendMSG", 60000, true);
- SetTimer("PayDay", 1200000, true);
- AddStaticVehicleEx(492,2508.2000000,-1666.1000000,13.3000000,12.0000000,66,31,15); //Greenwood
- AddStaticVehicleEx(492,2506.0000000,-1677.0000000,13.3000000,325.9970000,66,31,15); //Greenwood
- AddStaticVehicleEx(535,2473.3000000,-1694.1000000,13.4000000,0.0000000,163,173,15); //Slamvan
- AddStaticVehicleEx(535,2473.3000000,-1701.7000000,13.4000000,0.0000000,163,173,15); //Slamvan
- AddStaticVehicleEx(412,2487.6001000,-1655.5000000,13.3000000,90.0000000,63,62,15); //Voodoo
- AddStaticVehicleEx(412,2479.3999000,-1655.4000000,13.3000000,90.0000000,63,62,15); //Voodoo
- AddStaticVehicleEx(412,2472.0000000,-1655.2000000,13.3000000,90.0000000,63,62,15); //Voodoo
- AddStaticVehicleEx(405,2498.6001000,-1681.6000000,13.4000000,104.0000000,34,25,15); //Sentinel
- AddStaticVehicleEx(405,2487.6001000,-1682.8000000,13.3000000,89.9970000,34,25,15); //Sentinel
- AddStaticVehicleEx(461,2509.8999000,-1690.8000000,13.2000000,46.0000000,32,32,15); //PCJ-600
- AddStaticVehicleEx(461,2511.0000000,-1689.7000000,13.2000000,46.0000000,32,32,15); //PCJ-600
- AddStaticVehicleEx(461,2512.2000000,-1688.5000000,13.2000000,46.0000000,32,32,15); //PCJ-600
- AddStaticVehicleEx(461,2513.3999000,-1687.0000000,13.2000000,46.0000000,32,32,15); //PCJ-600
- AddStaticVehicleEx(461,2514.8000000,-1685.3000000,13.2000000,46.0000000,32,32,15); //PCJ-600
- AddStaticVehicleEx(510,2495.1001000,-1646.4000000,13.2000000,146.0000000,42,119,15); //Mountain Bike
- AddStaticVehicleEx(510,2496.5000000,-1646.6000000,13.2000000,145.9970000,42,119,15); //Mountain Bike
- AddStaticVehicleEx(510,2497.8999000,-1646.5000000,13.2000000,145.9920000,42,119,15); //Mountain Bike
- AddStaticVehicleEx(510,2499.3000000,-1646.6000000,13.2000000,145.9920000,42,119,15); //Mountain Bike
- AddStaticVehicleEx(510,2501.0000000,-1646.5000000,13.2000000,145.9920000,42,119,15); //Mountain Bike
- AddStaticVehicleEx(487,2533.3000000,-1678.0000000,20.2000000,90.0000000,39,47,15); //Maverick
- AddStaticVehicleEx(566,2206.2000000,-1176.6000000,25.6000000,294.0000000,111,130,15); //Tahoma
- AddStaticVehicleEx(566,2206.3000000,-1172.4000000,25.6000000,294.0000000,111,130,15); //Tahoma
- AddStaticVehicleEx(566,2206.0000000,-1167.7000000,25.6000000,294.0000000,111,130,15); //Tahoma
- AddStaticVehicleEx(566,2206.3000000,-1162.2000000,25.6000000,294.0000000,111,130,15); //Tahoma
- AddStaticVehicleEx(566,2206.2000000,-1157.4000000,25.6000000,294.0000000,111,130,15); //Tahoma
- AddStaticVehicleEx(566,2205.8999000,-1153.3000000,25.6000000,294.0000000,111,130,15); //Tahoma
- AddStaticVehicleEx(487,2216.6001000,-1161.9000000,26.0000000,0.0000000,165,169,15); //Maverick
- AddStaticVehicleEx(461,2227.7000000,-1177.3000000,25.4000000,88.0000000,45,58,15); //PCJ-600
- AddStaticVehicleEx(461,2227.6001000,-1173.9000000,25.4000000,87.9950000,45,58,15); //PCJ-600
- AddStaticVehicleEx(461,2227.5000000,-1170.5000000,25.4000000,87.9950000,45,58,15); //PCJ-600
- AddStaticVehicleEx(461,2227.6001000,-1166.2000000,25.4000000,87.9950000,45,58,15); //PCJ-600
- AddStaticVehicleEx(461,2227.6001000,-1162.9000000,25.4000000,87.9950000,45,58,15); //PCJ-600
- AddStaticVehicleEx(434,2227.8000000,-1159.4000000,25.9000000,56.0000000,93,126,15); //Hotknife
- AddStaticVehicleEx(434,2228.2000000,-1154.9000000,26.0000000,55.9970000,93,126,15); //Hotknife
- AddStaticVehicleEx(434,2227.8000000,-1150.7000000,26.0000000,55.9970000,93,126,15); //Hotknife
- AddStaticVehicleEx(542,2328.0000000,-1677.4000000,14.3000000,270.0000000,132,148,15); //Clover
- AddStaticVehicleEx(542,2158.8999000,-1794.7000000,13.2000000,270.0000000,132,148,15); //Clover
- AddStaticVehicleEx(542,2159.0000000,-1800.5000000,13.2000000,270.0000000,132,148,15); //Clover
- AddStaticVehicleEx(542,2159.1001000,-1806.2000000,13.2000000,270.0000000,132,148,15); //Clover
- AddStaticVehicleEx(487,2171.8999000,-1739.3000000,20.6000000,0.0000000,151,149,15); //Maverick
- AddStaticVehicleEx(487,2142.2000000,-1739.0000000,20.6000000,0.0000000,151,149,15); //Maverick
- AddStaticVehicleEx(475,2180.8999000,-1722.1000000,13.3000000,0.0000000,115,46,15); //Sabre
- AddStaticVehicleEx(475,2180.8999000,-1708.0000000,13.3000000,356.0000000,115,46,15); //Sabre
- AddStaticVehicleEx(475,2182.1001000,-1690.8000000,13.5000000,355.9950000,115,46,15); //Sabre
- AddStaticVehicleEx(475,2116.8999000,-1637.0000000,19.4000000,355.9950000,115,46,15); //Sabre
- AddStaticVehicleEx(475,2038.7000000,-1636.0000000,13.4000000,359.9950000,115,46,15); //Sabre
- AddStaticVehicleEx(545,2068.6001000,-1636.1000000,13.5000000,272.0000000,61,74,15); //Hustler
- AddStaticVehicleEx(545,2056.8000000,-1694.6000000,13.5000000,272.0000000,61,74,15); //Hustler
- AddStaticVehicleEx(545,2052.6001000,-1903.2000000,13.5000000,272.0000000,61,74,15); //Hustler
- AddStaticVehicleEx(545,2052.3999000,-1920.2000000,13.5000000,270.0000000,61,74,15); //Hustler
- AddStaticVehicleEx(545,2052.8000000,-1915.7000000,13.5000000,269.9950000,61,74,15); //Hustler
- AddStaticVehicleEx(545,2053.2000000,-1911.4000000,13.5000000,269.9950000,61,74,15); //Hustler
- AddStaticVehicleEx(545,2053.0000000,-1907.5000000,13.5000000,269.9950000,61,74,15); //Hustler
- AddStaticVehicleEx(496,2225.8000000,-1948.6000000,13.3000000,0.0000000,59,78,15); //Blista Compact
- AddStaticVehicleEx(496,2135.7000000,-1994.7000000,13.3000000,314.0000000,59,78,15); //Blista Compact
- // Text Draws
- // Community Website //
- CWEBS = TextDrawCreate(635.0,433.0,"~w~www.~b~your~w~-~b~website~w~.com");
- TextDrawUseBox(CWEBS,0);
- TextDrawAlignment(CWEBS,3);
- TextDrawBoxColor(CWEBS,0x000000FF);
- TextDrawFont(CWEBS, 3);
- TextDrawLetterSize(CWEBS, 0.37, 1.1);
- TextDrawBackgroundColor(CWEBS,0x000000FF);
- TextDrawColor(CWEBS,0xFF0000CC);
- TextDrawSetOutline(CWEBS,1);
- TextDrawSetShadow(CWEBS,1);
- // Community Name //
- CNAME = TextDrawCreate(635.0,10.0,"~b~YourName");
- TextDrawUseBox(CNAME,0);
- TextDrawAlignment(CNAME,3);
- TextDrawBoxColor(CNAME,0x000000FF);
- TextDrawFont(CNAME, 3);
- TextDrawLetterSize(CNAME, 0.40, 1.1);
- TextDrawBackgroundColor(CNAME,0x000000AA);
- TextDrawColor(CNAME,0xFF0000CC); //
- TextDrawSetOutline(CNAME,1); //
- TextDrawSetShadow(CNAME,1);
- return 1;
- }
- public OnGameModeExit()
- {
- print("\n--------------------------------------");
- print(" LSGC Version 0.1 - Unloaded ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- ShowPlayerDialog(playerid, DIALOG_TEAM, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Team Select","{00FF00}Grove Street Famillies\n{A020F0}Front Yard Ballas","Choose","Close");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pName[MAX_PLAYER_NAME], str[500];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(str,sizeof str,"~g~Player ~r~%s ~g~has joined Los Santos Gang Chaos!",pName);
- TextDrawShowForPlayer(playerid, CWEBS);
- TextDrawShowForPlayer(playerid, CNAME);
- GameTextForAllOthers_(playerid, str, 5000, 4, 0x00C8FFFF);
- GameTextForPlayer_(playerid, "Welcome To ~g~Los ~y~Santos~b~ Gang~r~ Chaos~g~ !!!", 5000, 10, 0x00C8FFFF);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pName[MAX_PLAYER_NAME], str[500];
- GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
- switch(reason)
- {
- case 0: format(str, sizeof str, "~g~Player ~r~%s ~g~has left Los Santos Gang Chaos. (Crashed)", pName);
- case 1: format(str, sizeof str, "~g~Player ~r~%s ~g~has left Los Santos Gang Chaos. (Left)", pName);
- case 2: format(str, sizeof str, "~g~Player ~r~%s ~g~has left Los Santos Gang Chaos. (Kicked/Banned)", pName);
- }
- GameTextForAllOthers_(playerid, str, 5000, 4, 0x00C8FFFF);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- new Random = random(sizeof(GroveRandom));
- SetPlayerPos(playerid, GroveRandom[Random][0], GroveRandom[Random][1], GroveRandom[Random][2]);
- SetPlayerFacingAngle(playerid, GroveRandom[Random][3]);
- SetPlayerSkin(playerid, GroveSkin[random(3)]);
- }
- if(gTeam[playerid] == TEAM_BALLA)
- {
- new Random = random(sizeof(BallaRandom));
- SetPlayerPos(playerid, BallaRandom[Random][0], BallaRandom[Random][1], BallaRandom[Random][2]);
- SetPlayerFacingAngle(playerid, BallaRandom[Random][3]);
- SetPlayerSkin(playerid, BallaSkin[random(3)]);
- }
- GivePlayerWeapon(playerid, 24, 750);
- GivePlayerWeapon(playerid, 27, 750);
- GivePlayerWeapon(playerid, 29, 750);
- GivePlayerWeapon(playerid, 31, 750);
- GivePlayerWeapon(playerid, 34, 750);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new kName[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
- GetPlayerName(killerid, kName, MAX_PLAYER_NAME);
- format(string, sizeof string, "{FF0000}[Killed]: {3BF5C6}You have killed {FFFFFF}%s {3BF5C6}and recieved {FFFFFF}250${3BF5C6}!", pName);
- SCM(killerid, 0xBFBFBFFF,string);
- GivePlayerMoney(killerid, 250);
- format(string, sizeof string, "{FF0000}[Killed]: {3BF5C6}You've been killed by {FFFFFF}%s {3BF5C6}and lost {FFFFFF}100${3BF5C6}!", kName);
- SCM(playerid, 0xBFBFBFFF,string);
- GivePlayerMoney(playerid, -100);
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(text[0] == '@')
- {
- GetPlayerName(playerid, string, sizeof(string));
- format(string, sizeof(string), "{3BF5C6}[Team Chat] {9CD115}Player %s: %s", string, text[1]);
- printf("%s", string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid)) SendClientMessage(i, GetPlayerColor(playerid), string);
- }
- return 0;
- }
- if(gTeam[playerid] == TEAM_GROVE)
- {
- GetPlayerName(playerid, string, sizeof(string));
- new pText[500];
- format(pText, sizeof (pText), "{3BF5C6}[All Chat]{9CD115}Grove:{FFFFFF} %s", playerid, text);
- SendPlayerMessageToAll(playerid, pText);
- return 0;
- }
- if(gTeam[playerid] == TEAM_BALLA)
- {
- GetPlayerName(playerid, string, sizeof(string));
- new pText[500];
- format(pText, sizeof (pText), "{3BF5C6}[All Chat]{9CD115}Balla:{FFFFFF} %s", playerid, text);
- SendPlayerMessageToAll(playerid, pText);
- return 0;
- }
- return 0;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch( dialogid )
- {
- case DIALOG_CMDS:
- {
- if(response)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "/rules | /buygun | /help | /commands | /cmds | /credits | /updates\n More Coming Soon!");
- ShowPlayerDialog(playerid, DIALOG_CMDS1, DIALOG_STYLE_MSGBOX,"{3BF5C6}General Commands",string,"Done","Close");
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "Chat with Team use '@' and Text [Example: @Hello, I'am new here]\n More Coming Soon!");
- ShowPlayerDialog(playerid, DIALOG_CMDS2, DIALOG_STYLE_MSGBOX,"{3BF5C6}Chat Commands",string,"Done","Close");
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "More Coming Soon!");
- ShowPlayerDialog(playerid, DIALOG_CMDS3, DIALOG_STYLE_MSGBOX,"{3BF5C6}Account Commands",string,"Done","Close");
- }
- if(listitem == 3)
- {
- format(string, sizeof(string), "Coming Soon!");
- ShowPlayerDialog(playerid, DIALOG_CMDS4, DIALOG_STYLE_MSGBOX,"{3BF5C6}V.I.P Commands",string,"Done","Close");
- }
- if(listitem == 4)
- {
- format(string, sizeof(string), "Coming Soon!");
- ShowPlayerDialog(playerid, DIALOG_CMDS5, DIALOG_STYLE_MSGBOX,"{3BF5C6}Administrator Commands",string,"Done","Close");
- }
- }
- }
- case DIALOG_TEAM:
- {
- if(response)
- {
- if(listitem == 0)
- {
- SpawnPlayer(playerid);
- SetPlayerSkin(playerid, GroveSkin[random(3)]);
- SCM(playerid, -1, "{DB881A}[Team]: {3BF5C6}You've joined Grove Street Team. Welcome !");
- AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- gTeam[playerid] = TEAM_GROVE;
- SetPlayerColor(playerid,0x79D130FF);
- new Random = random(sizeof(GroveRandom));
- SetPlayerPos(playerid, GroveRandom[Random][0], GroveRandom[Random][1], GroveRandom[Random][2]);
- SetPlayerFacingAngle(playerid, GroveRandom[Random][3]);
- }
- if(listitem == 1)
- {
- SpawnPlayer(playerid);
- SetPlayerSkin(playerid, BallaSkin[random(3)]);
- SCM(playerid, -1, "{DB881A}[Team]: {3BF5C6}You've joined Front Yard Ballas Team. Welcome !");
- AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- gTeam[playerid] = TEAM_BALLA;
- SetPlayerColor(playerid,0xD12CB3FF);
- new Random = random(sizeof(BallaRandom));
- SetPlayerPos(playerid, BallaRandom[Random][0], BallaRandom[Random][1], BallaRandom[Random][2]);
- SetPlayerFacingAngle(playerid, BallaRandom[Random][3]);
- }
- }
- }
- case DIALOG_SHOP:
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(GetPlayerMoney(playerid) <1500) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 1500$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Grenade for 1500$(3 Ammo).");
- GivePlayerWeapon(playerid,16,3);
- GivePlayerMoney(playerid,-1500);
- }
- if(listitem == 1)
- {
- if(GetPlayerMoney(playerid) <2000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 2000$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying 9mm for 2000$(75 Ammo).");
- GivePlayerWeapon(playerid,22,75);
- GivePlayerMoney(playerid,-2000);
- }
- if(listitem == 2)
- {
- if(GetPlayerMoney(playerid) <5000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 5000$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Deagle for 5000$(50 Ammo).");
- GivePlayerWeapon(playerid,24,50);
- GivePlayerMoney(playerid,-5000);
- }
- if(listitem == 3)
- {
- if(GetPlayerMoney(playerid) <5000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 5000$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Shotgun for 5000$(25 Ammo).");
- GivePlayerWeapon(playerid,25,400);
- GivePlayerMoney(playerid,-5000);
- }
- if(listitem == 4)
- {
- if(GetPlayerMoney(playerid) <10000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 10000$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Combat Shotgun for 10000$(50 Ammo).");
- GivePlayerWeapon(playerid,27,50);
- GivePlayerMoney(playerid,-10000);
- }
- if(listitem == 5)
- {
- if(GetPlayerMoney(playerid) <3500) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 3500$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying MP5 for 3500$(150 Ammo).");
- GivePlayerWeapon(playerid,29,150);
- GivePlayerMoney(playerid,-3500);
- }
- if(listitem == 6)
- {
- if(GetPlayerMoney(playerid) <9500) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 9500$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying AK-47 for 9500$(150 Ammo).");
- GivePlayerWeapon(playerid,30,150);
- GivePlayerMoney(playerid,-9500);
- }
- if(listitem == 7)
- {
- if(GetPlayerMoney(playerid) <10000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 10000$.");
- SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying M4 for 10000$(150 Ammo).");
- GivePlayerWeapon(playerid,31,150);
- GivePlayerMoney(playerid,-10000);
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- // Server Commands //
- CMD:commands(playerid, params[])
- {
- format(string, sizeof(string), "{BA9500}General Commands\nChat Commands\nAccount Commands\nVIP Commands\nAdmin Commands");
- ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Commands",string,"Choose","Leave");
- return 1;
- }
- CMD:cmds(playerid, params[])
- {
- format(string, sizeof(string), "{BA9500}General Commands\nChat Commands\nAccount Commands\nVIP Commands\nAdmin Commands");
- ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Commands",string,"Choose","Leave");
- return 1;
- }
- CMD:rules(playerid, params[])
- {
- format(string, sizeof(string), "There are 10 rules in this server, please follow all the rules if you're don't want to get punished\n1. Don't Insult Players/Admins/VIPs\n2. Respect Admins/Players/VIPs\n3. Don't Adverstise Server Here\n4. Don't C-Bug\n5. Don't Cheat\n6. Don't use any illegal program\n7. Don't kill team mate\n8. Helikill is not allowed\n9. Car Ram is not allowed\n10. Don't ask for Scores/Cash");
- ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Rules",string,"Done","Leave");
- return 1;
- }
- CMD:updates(playerid, params[])
- {
- format(string, sizeof(string), "No Updates/n Updates Coming Soon, Suggest your Suggestion on our forum : www.coming-soon.com");
- ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Updates",string,"Done","Leave");
- return 1;
- }
- CMD:credits(playerid, params[])
- {
- format(string, sizeof(string), "Server Owner - Cassanova\nGamemode Scripter - Cassanova\nSecond Scripter - None\nMapper - None\nSecond Mapper - None\nForum Creator - Cassanova\nZCMD - ZeeX\nServer Programs - SAMP Community\nWeapon Saving - iFarbod\nGameTexts - iFarbod");
- ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Credits",string,"Done","Leave");
- return 1;
- }
- CMD:help(playerid, params[])
- {
- format(string, sizeof(string), "This is a Team Deathmatch Gamemode\nTDM mean that you can't kill your teammate, you must kill other teams not your teammate\nAfter you killed other teams you get a reward : 1 Scores and 250$ Cash\nPlease read the server rules /rules\nThank You!");
- ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Help",string,"Done","Leave");
- return 1;
- }
- CMD:buygun(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Shop","{BA9500}Grenade | Price : 1.500$\n{BA9500}9mm | Price : 2.000$\n{BA9500}Desert Eagle | Price : 5.000$\n{BA9500}Shotgun | Price : 5.000$\n{BA9500}Combat Shotgun | Price : 10.000$\n{BA9500}MP5 | Price : 3.500$\n{BA9500}AK-47 | Price : 9.500$\n{BA9500}M4 | Price : 10.000$","Buy","Quit");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement