Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*VISITE NOSSO SITE: http://www.sampknd.com/
- VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
- SAMP KND MELHOR BLOG DE SAMP DO BRASIL
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <streamer>
- #if defined FILTERSCRIPT
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define COLOR_GREEN 0x00FF00FF
- #define COLOR_RED 0xFF0000AA
- new Text:Weapon;
- new Text:ninemm;
- new Text:Desert;
- new Text:Shotgun;
- new Text:Sawnoff;
- new Text:shotgun;
- new Text:Combat;
- new Text:MP5;
- new Text:AK47;
- new Text:M4;
- new Text:Country;
- new Text:rifle;
- new Text:eagle;
- new Text:Box;
- new Text:Pressy;
- new Text:Pressn;
- new Text:Ammo;
- new Text:Ammo200;
- new Text:Ammo500;
- new Text:Ammo700;
- new Text:Price;
- new Text:Price9000;
- new Text:Price8000;
- new Text:Price7000;
- new Text:Price3000;
- new Text:Price2000;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Weapon Shop FilterScript by MechaTech");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("Tradução: eduardo_holanda\n");
- }
- #endif
- public OnGameModeInit()
- {
- CreateDynamicObject(346, 310.69, -163.25, 999.62, 0.00, 0.00, 0.00);
- CreateDynamicObject(348, 309.95, -162.45, 999.62, 0.00, 0.00, 90.00);
- CreateDynamicObject(349, 311.69, -162.64, 999.62, 0.00, 12.00, 96.00);
- CreateDynamicObject(350, 310.10, -161.51, 999.60, 0.00, 4.00, 0.00);
- CreateDynamicObject(351, 311.46, -161.44, 999.62, 0.00, 0.00, 186.00);
- CreateDynamicObject(353, 314.99, -161.50, 999.64, 0.00, 0.00, 4.00);
- CreateDynamicObject(355, 315.92, -162.31, 999.66, 0.00, 0.00, -86.00);
- CreateDynamicObject(356, 314.96, -163.18, 999.66, 0.00, 0.00, 4.00);
- CreateDynamicObject(357, 314.28, -162.09, 999.62, 0.00, 6.00, -84.00);
- Weapon = TextDrawCreate(509.000000, 280.000000, "Weapon:");
- TextDrawBackgroundColor(Weapon, 255);
- TextDrawFont(Weapon, 1);
- TextDrawLetterSize(Weapon, 0.470000, 1.700000);
- TextDrawColor(Weapon, -16776961);
- TextDrawSetOutline(Weapon, 0);
- TextDrawSetProportional(Weapon, 1);
- TextDrawSetShadow(Weapon, 1);
- ninemm = TextDrawCreate(579.000000, 281.000000, "9mm");
- TextDrawBackgroundColor(ninemm, 255);
- TextDrawFont(ninemm, 1);
- TextDrawLetterSize(ninemm, 0.470000, 1.700000);
- TextDrawColor(ninemm, -1);
- TextDrawSetOutline(ninemm, 0);
- TextDrawSetProportional(ninemm, 1);
- TextDrawSetShadow(ninemm, 1);
- Desert = TextDrawCreate(579.000000, 281.000000, "Desert");
- TextDrawBackgroundColor(Desert, 255);
- TextDrawFont(Desert, 1);
- TextDrawLetterSize(Desert, 0.470000, 1.700000);
- TextDrawColor(Desert, -1);
- TextDrawSetOutline(Desert, 0);
- TextDrawSetProportional(Desert, 1);
- TextDrawSetShadow(Desert, 1);
- eagle = TextDrawCreate(510.000000, 299.000000, "eagle");
- TextDrawBackgroundColor(eagle, 255);
- TextDrawFont(eagle, 1);
- TextDrawLetterSize(eagle, 0.470000, 1.700000);
- TextDrawColor(eagle, -1);
- TextDrawSetOutline(eagle, 0);
- TextDrawSetProportional(eagle, 1);
- TextDrawSetShadow(eagle, 1);
- Shotgun = TextDrawCreate(579.000000, 281.000000, "Shotgun");
- TextDrawBackgroundColor(Shotgun, 255);
- TextDrawFont(Shotgun, 1);
- TextDrawLetterSize(Shotgun, 0.470000, 1.700000);
- TextDrawColor(Shotgun, -1);
- TextDrawSetOutline(Shotgun, 0);
- TextDrawSetProportional(Shotgun, 1);
- TextDrawSetShadow(Shotgun, 1);
- Sawnoff = TextDrawCreate(579.000000, 281.000000, "Sawnoff");
- TextDrawBackgroundColor(Sawnoff, 255);
- TextDrawFont(Sawnoff, 1);
- TextDrawLetterSize(Sawnoff, 0.470000, 1.700000);
- TextDrawColor(Sawnoff, -1);
- TextDrawSetOutline(Sawnoff, 0);
- TextDrawSetProportional(Sawnoff, 1);
- TextDrawSetShadow(Sawnoff, 1);
- Combat = TextDrawCreate(579.000000, 281.000000, "Combat");
- TextDrawBackgroundColor(Combat, 255);
- TextDrawFont(Combat, 1);
- TextDrawLetterSize(Combat, 0.470000, 1.700000);
- TextDrawColor(Combat, -1);
- TextDrawSetOutline(Combat, 0);
- TextDrawSetProportional(Combat, 1);
- TextDrawSetShadow(Combat, 1);
- shotgun = TextDrawCreate(510.000000, 299.000000, "shotgun");
- TextDrawBackgroundColor(shotgun, 255);
- TextDrawFont(shotgun, 1);
- TextDrawLetterSize(shotgun, 0.470000, 1.700000);
- TextDrawColor(shotgun, -1);
- TextDrawSetOutline(shotgun, 0);
- TextDrawSetProportional(shotgun, 1);
- TextDrawSetShadow(shotgun, 1);
- MP5 = TextDrawCreate(579.000000, 281.000000, "MP5");
- TextDrawBackgroundColor(MP5, 255);
- TextDrawFont(MP5, 1);
- TextDrawLetterSize(MP5, 0.470000, 1.700000);
- TextDrawColor(MP5, -1);
- TextDrawSetOutline(MP5, 0);
- TextDrawSetProportional(MP5, 1);
- TextDrawSetShadow(MP5, 1);
- M4 = TextDrawCreate(579.000000, 281.000000, "M4");
- TextDrawBackgroundColor(M4, 255);
- TextDrawFont(M4, 1);
- TextDrawLetterSize(M4, 0.470000, 1.700000);
- TextDrawColor(M4, -1);
- TextDrawSetOutline(M4, 0);
- TextDrawSetProportional(M4, 1);
- TextDrawSetShadow(M4, 1);
- AK47 = TextDrawCreate(579.000000, 281.000000, "AK-47");
- TextDrawBackgroundColor(AK47, 255);
- TextDrawFont(AK47, 1);
- TextDrawLetterSize(AK47, 0.470000, 1.700000);
- TextDrawColor(AK47, -1);
- TextDrawSetOutline(AK47, 0);
- TextDrawSetProportional(AK47, 1);
- TextDrawSetShadow(AK47, 1);
- Country = TextDrawCreate(579.000000, 281.000000, "Country");
- TextDrawBackgroundColor(Country, 255);
- TextDrawFont(Country, 1);
- TextDrawLetterSize(Country, 0.470000, 1.700000);
- TextDrawColor(Country, -1);
- TextDrawSetOutline(Country, 0);
- TextDrawSetProportional(Country, 1);
- TextDrawSetShadow(Country, 1);
- rifle = TextDrawCreate(510.000000, 299.000000, "rifle");
- TextDrawBackgroundColor(rifle, 255);
- TextDrawFont(rifle, 1);
- TextDrawLetterSize(rifle, 0.470000, 1.700000);
- TextDrawColor(rifle, -1);
- TextDrawSetOutline(rifle, 0);
- TextDrawSetProportional(rifle, 1);
- TextDrawSetShadow(rifle, 1);
- Ammo = TextDrawCreate(510.000000, 330.000000, "Ammo:");
- TextDrawBackgroundColor(Ammo, 255);
- TextDrawFont(Ammo, 1);
- TextDrawLetterSize(Ammo, 0.360000, 1.500000);
- TextDrawColor(Ammo, 143263999);
- TextDrawSetOutline(Ammo, 0);
- TextDrawSetProportional(Ammo, 1);
- TextDrawSetShadow(Ammo, 1);
- Price = TextDrawCreate(511.000000, 349.000000, "Price:");
- TextDrawBackgroundColor(Price, 255);
- TextDrawFont(Price, 1);
- TextDrawLetterSize(Price, 0.360000, 1.500000);
- TextDrawColor(Price, 143263999);
- TextDrawSetOutline(Price, 0);
- TextDrawSetProportional(Price, 1);
- TextDrawSetShadow(Price, 1);
- Pressy = TextDrawCreate(498.000000, 389.000000, "Pressione 'Y' para comprar a arma.");
- TextDrawBackgroundColor(Pressy, 255);
- TextDrawFont(Pressy, 1);
- TextDrawLetterSize(Pressy, 0.290000, 1.000000);
- TextDrawColor(Pressy, -1);
- TextDrawSetOutline(Pressy, 0);
- TextDrawSetProportional(Pressy, 1);
- TextDrawSetShadow(Pressy, 1);
- Pressn = TextDrawCreate(498.000000, 402.000000, "Pressione 'N' para cancelar.");
- TextDrawBackgroundColor(Pressn, 255);
- TextDrawFont(Pressn, 1);
- TextDrawLetterSize(Pressn, 0.290000, 1.000000);
- TextDrawColor(Pressn, -1);
- TextDrawSetOutline(Pressn, 0);
- TextDrawSetProportional(Pressn, 1);
- TextDrawSetShadow(Pressn, 1);
- Box = TextDrawCreate(600.000000, 265.000000, " ");
- TextDrawAlignment(Box, 2);
- TextDrawBackgroundColor(Box, 255);
- TextDrawFont(Box, 3);
- TextDrawLetterSize(Box, 0.349999, 6.699995);
- TextDrawColor(Box, 153);
- TextDrawSetOutline(Box, 0);
- TextDrawSetProportional(Box, 1);
- TextDrawSetShadow(Box, 1);
- TextDrawUseBox(Box, 1);
- TextDrawBoxColor(Box, 153);
- TextDrawTextSize(Box, 45.000000, 212.000000);
- Ammo500 = TextDrawCreate(555.000000, 330.000000, "500");
- TextDrawBackgroundColor(Ammo500, 255);
- TextDrawFont(Ammo500, 1);
- TextDrawLetterSize(Ammo500, 0.360000, 1.500000);
- TextDrawColor(Ammo500, -1);
- TextDrawSetOutline(Ammo500, 0);
- TextDrawSetProportional(Ammo500, 1);
- TextDrawSetShadow(Ammo500, 1);
- Ammo200 = TextDrawCreate(555.000000, 330.000000, "200");
- TextDrawBackgroundColor(Ammo200, 255);
- TextDrawFont(Ammo200, 1);
- TextDrawLetterSize(Ammo200, 0.360000, 1.500000);
- TextDrawColor(Ammo200, -1);
- TextDrawSetOutline(Ammo200, 0);
- TextDrawSetProportional(Ammo200, 1);
- TextDrawSetShadow(Ammo200, 1);
- Ammo700 = TextDrawCreate(555.000000, 330.000000, "700");
- TextDrawBackgroundColor(Ammo700, 255);
- TextDrawFont(Ammo700, 1);
- TextDrawLetterSize(Ammo700, 0.360000, 1.500000);
- TextDrawColor(Ammo700, -1);
- TextDrawSetOutline(Ammo700, 0);
- TextDrawSetProportional(Ammo700, 1);
- TextDrawSetShadow(Ammo700, 1);
- Price7000 = TextDrawCreate(548.000000, 350.000000, "$7,000");
- TextDrawBackgroundColor(Price7000, 255);
- TextDrawFont(Price7000, 1);
- TextDrawLetterSize(Price7000, 0.360000, 1.500000);
- TextDrawColor(Price7000, -1);
- TextDrawSetOutline(Price7000, 0);
- TextDrawSetProportional(Price7000, 1);
- TextDrawSetShadow(Price7000, 1);
- Price8000 = TextDrawCreate(548.000000, 350.000000, "$8,000");
- TextDrawBackgroundColor(Price8000, 255);
- TextDrawFont(Price8000, 1);
- TextDrawLetterSize(Price8000, 0.360000, 1.500000);
- TextDrawColor(Price8000, -1);
- TextDrawSetOutline(Price8000, 0);
- TextDrawSetProportional(Price8000, 1);
- TextDrawSetShadow(Price8000, 1);
- Price9000 = TextDrawCreate(548.000000, 350.000000, "$9,000");
- TextDrawBackgroundColor(Price9000, 255);
- TextDrawFont(Price9000, 1);
- TextDrawLetterSize(Price9000, 0.360000, 1.500000);
- TextDrawColor(Price9000, -1);
- TextDrawSetOutline(Price9000, 0);
- TextDrawSetProportional(Price9000, 1);
- TextDrawSetShadow(Price9000, 1);
- Price2000 = TextDrawCreate(548.000000, 350.000000, "$2,000");
- TextDrawBackgroundColor(Price2000, 255);
- TextDrawFont(Price2000, 1);
- TextDrawLetterSize(Price2000, 0.360000, 1.500000);
- TextDrawColor(Price2000, -1);
- TextDrawSetOutline(Price2000, 0);
- TextDrawSetProportional(Price2000, 1);
- TextDrawSetShadow(Price2000, 1);
- Price3000 = TextDrawCreate(548.000000, 350.000000, "$3,000");
- TextDrawBackgroundColor(Price3000, 255);
- TextDrawFont(Price3000, 1);
- TextDrawLetterSize(Price3000, 0.360000, 1.500000);
- TextDrawColor(Price3000, -1);
- TextDrawSetOutline(Price3000, 0);
- TextDrawSetProportional(Price3000, 1);
- TextDrawSetShadow(Price3000, 1);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- PreloadAnimLib(playerid,"INT_SHOP");
- RemoveBuildingForPlayer(playerid, 18105, 312.9844, -163.2500, 1000.5547, 0.25);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/ammu", cmdtext, true, 5) == 0)
- {
- SetPlayerInterior(playerid, 6);
- SetPlayerPos(playerid, 316.524993,-167.706985,999.593750);
- 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)
- {
- if(IsPlayerInRangeOfPoint(playerid,20.0, 298.3672, -164.2344, 1000.8281))
- {
- if (PRESSED(KEY_NO))
- {
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:ninemm);
- TextDrawHideForPlayer(playerid, Text:Desert);
- TextDrawHideForPlayer(playerid, Text:eagle);
- TextDrawHideForPlayer(playerid, Text:Shotgun);
- TextDrawHideForPlayer(playerid, Text:Combat);
- TextDrawHideForPlayer(playerid, Text:Sawnoff);
- TextDrawHideForPlayer(playerid, Text:shotgun);
- TextDrawHideForPlayer(playerid, Text:MP5);
- TextDrawHideForPlayer(playerid, Text:AK47);
- TextDrawHideForPlayer(playerid, Text:M4);
- TextDrawHideForPlayer(playerid, Text:Country);
- TextDrawHideForPlayer(playerid, Text:rifle);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Ammo500);
- TextDrawHideForPlayer(playerid, Text:Ammo700);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Price9000);
- TextDrawHideForPlayer(playerid, Text:Price8000);
- TextDrawHideForPlayer(playerid, Text:Price7000);
- TextDrawHideForPlayer(playerid, Text:Price2000);
- TextDrawHideForPlayer(playerid, Text:Price3000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 310.69, -163.25, 999.62))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:ninemm);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Price2000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma 9mm com 200 munições por $2.000!");
- GivePlayerWeapon(playerid, 22, 200);
- GivePlayerMoney(playerid, -2000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 310.69, -163.25, 999.62))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:ninemm);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo200);
- TextDrawShowForPlayer(playerid, Text:Price2000);
- SetPlayerCameraPos(playerid, 312.7308, -164.2786, 1000.1425);
- SetPlayerCameraLookAt(playerid, 309.7611, -162.7127, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 309.9547, -162.4500, 999.6200))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:Desert);
- TextDrawHideForPlayer(playerid, Text:eagle);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Price3000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma Desert Eagle com 200 munições por $3.000!");
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerMoney(playerid, -3000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 309.9547, -162.4500, 999.6200))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:Desert);
- TextDrawShowForPlayer(playerid, Text:eagle);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo200);
- TextDrawShowForPlayer(playerid, Text:Price3000);
- SetPlayerCameraPos(playerid, 309.4929, -164.2428, 1000.1425);
- SetPlayerCameraLookAt(playerid, 309.6281, -162.3687, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 311.69, -162.64, 999.62))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:Shotgun);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Price7000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma espingarda com munição 200 por $7.000!");
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerMoney(playerid, -7000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 311.69, -162.64, 999.62))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:Shotgun);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo200);
- TextDrawShowForPlayer(playerid, Text:Price7000);
- SetPlayerCameraPos(playerid, 311.9360, -160.4641, 1000.1425);
- SetPlayerCameraLookAt(playerid, 311.5432, -162.4070, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 310.10, -161.51, 999.60))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 9000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:Sawnoff);
- TextDrawHideForPlayer(playerid, Text:shotgun);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Price9000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma espingarda serrada Off com 200 munições por $9.000 ");
- GivePlayerWeapon(playerid, 26, 200);
- GivePlayerMoney(playerid, -9000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 310.10, -161.51, 999.60))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:Sawnoff);
- TextDrawShowForPlayer(playerid, Text:shotgun);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo200);
- TextDrawShowForPlayer(playerid, Text:Price9000);
- SetPlayerCameraPos(playerid, 308.0452, -161.1160, 1000.1425);
- SetPlayerCameraLookAt(playerid, 310.0738, -161.4842, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 311.46, -161.44, 999.62))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:shotgun);
- TextDrawHideForPlayer(playerid, Text:Combat);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Price8000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma espingarda de Combate com 200 munições por $8.000!");
- GivePlayerWeapon(playerid, 27, 200);
- GivePlayerMoney(playerid, -8000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 311.46, -161.44, 999.62))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:shotgun);
- TextDrawShowForPlayer(playerid, Text:Combat);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo200);
- TextDrawShowForPlayer(playerid, Text:Price8000);
- SetPlayerCameraPos(playerid, 312.6877, -161.2530, 1000.1425);
- SetPlayerCameraLookAt(playerid, 311.0968, -161.5094, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 314.99, -161.50, 999.64))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:MP5);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo700);
- TextDrawHideForPlayer(playerid, Text:Price7000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar um MP5 com 700 munições por $7,000!");
- GivePlayerWeapon(playerid, 29, 700);
- GivePlayerMoney(playerid, -7000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 314.99, -161.50, 999.64))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:MP5);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo700);
- TextDrawShowForPlayer(playerid, Text:Price7000);
- SetPlayerCameraPos(playerid, 313.2165, -161.2382, 1000.1425);
- SetPlayerCameraLookAt(playerid, 314.9025, -161.4821, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 315.92, -162.31, 999.66))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:AK47);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo500);
- TextDrawHideForPlayer(playerid, Text:Price7000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar um AK-47 com 500 munições por $7.000!");
- GivePlayerWeapon(playerid, 30, 500);
- GivePlayerMoney(playerid, -7000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 315.92, -162.31, 999.66))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:AK47);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo500);
- TextDrawShowForPlayer(playerid, Text:Price7000);
- SetPlayerCameraPos(playerid, 316.7339, -160.9307, 1000.1425);
- SetPlayerCameraLookAt(playerid, 315.8018, -162.3379, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 314.96, -163.18, 999.66))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:M4);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo500);
- TextDrawHideForPlayer(playerid, Text:Price8000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar uma M4 com 500 munições por $8,000!");
- GivePlayerWeapon(playerid, 31, 500);
- GivePlayerMoney(playerid, -8000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 314.96, -163.18, 999.66))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:M4);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo500);
- TextDrawShowForPlayer(playerid, Text:Price8000);
- SetPlayerCameraPos(playerid, 316.6595, -163.8956, 1000.1425);
- SetPlayerCameraLookAt(playerid, 314.9826, -163.2139, 999.5625);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,1.0, 314.28, -162.09, 999.62))
- {
- if (PRESSED(KEY_YES))
- {
- if(GetPlayerMoney(playerid) < 8000) return SendClientMessage(playerid, COLOR_RED, "Você não tem dinheiro suficiente para comprar a arma.");
- TogglePlayerControllable(playerid,1);
- SetCameraBehindPlayer(playerid);
- TextDrawHideForPlayer(playerid, Text:Weapon);
- TextDrawHideForPlayer(playerid, Text:Country);
- TextDrawHideForPlayer(playerid, Text:rifle);
- TextDrawHideForPlayer(playerid, Text:Box);
- TextDrawHideForPlayer(playerid, Text:Pressy);
- TextDrawHideForPlayer(playerid, Text:Pressn);
- TextDrawHideForPlayer(playerid, Text:Ammo);
- TextDrawHideForPlayer(playerid, Text:Price);
- TextDrawHideForPlayer(playerid, Text:Ammo200);
- TextDrawHideForPlayer(playerid, Text:Price8000);
- SendClientMessage(playerid, COLOR_GREEN, "Você acabou de comprar um rifle com 200 munições por $8,000!");
- GivePlayerWeapon(playerid, 33, 200);
- GivePlayerMoney(playerid, -8000);
- new Skin = GetPlayerSkin(playerid);
- SetPlayerSkin(playerid, Skin);
- }
- }
- if (PRESSED(KEY_SECONDARY_ATTACK))
- {
- if(IsPlayerInRangeOfPoint(playerid,1.0, 314.28, -162.09, 999.62))
- {
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"INT_SHOP","shop_lookB",4.1,1,1,1,1,1,1);
- TextDrawShowForPlayer(playerid, Text:Weapon);
- TextDrawShowForPlayer(playerid, Text:Country);
- TextDrawShowForPlayer(playerid, Text:rifle);
- TextDrawShowForPlayer(playerid, Text:Box);
- TextDrawShowForPlayer(playerid, Text:Pressy);
- TextDrawShowForPlayer(playerid, Text:Pressn);
- TextDrawShowForPlayer(playerid, Text:Ammo);
- TextDrawShowForPlayer(playerid, Text:Price);
- TextDrawShowForPlayer(playerid, Text:Ammo200);
- TextDrawShowForPlayer(playerid, Text:Price8000);
- SetPlayerCameraPos(playerid, 313.8457, -163.7814, 1000.1425);
- SetPlayerCameraLookAt(playerid, 314.2114, -162.3438, 999.5625);
- }
- }
- 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[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- stock PreloadAnimLib(playerid, animlib[])
- {
- ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement