Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <cpstream>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- new shark;
- new dolphin;
- new Turtle;
- new Pet; //CheckPoint of the store.
- #endif
- public OnGameModeInit()
- {
- Create3DTextLabel("{00FF00}Enter this checkpoint\n{FF6103}to see the pet store menu",0x0066FFff,-72.0772,2521.0083,16.5503,40.0,0);
- Pet = CPS_AddCheckpoint(-72.0772,2521.0083,16.5503,3.0,40);
- CreateObject(990, -80.14, 2487.55, 17.02, 0.00, 0.00, 90.00);
- CreateObject(990, -80.18, 2497.55, 17.02, 0.00, 0.00, 90.00);
- CreateObject(990, -80.16, 2507.56, 17.02, 0.00, 0.00, 90.00);
- CreateObject(990, -80.18, 2517.56, 17.03, 0.00, 0.00, 90.00);
- CreateObject(990, -76.81, 2525.84, 17.02, 0.00, 0.00, 45.00);
- CreateObject(990, -68.91, 2528.91, 17.02, 0.00, 0.00, 0.00);
- CreateObject(990, -58.93, 2528.95, 17.02, 0.00, 0.00, 0.00);
- CreateObject(990, -54.19, 2524.24, 17.03, 0.00, 0.00, 270.00);
- CreateObject(990, -54.16, 2514.27, 17.03, 0.00, 0.00, 270.00);
- CreateObject(1523, -54.02, 2509.36, 15.48, 0.00, 0.00, 270.00);
- CreateObject(1523, -53.94, 2506.33, 15.48, 0.00, 0.00, 90.00);
- CreateObject(990, -54.21, 2501.33, 17.02, 0.00, 0.00, 270.00);
- CreateObject(990, -54.18, 2491.35, 17.02, 0.00, 0.00, 270.00);
- CreateObject(990, -54.18, 2481.33, 17.02, 0.00, 0.00, 270.00);
- CreateObject(990, -58.94, 2476.66, 17.02, 0.00, 0.00, 180.00);
- CreateObject(990, -68.98, 2476.66, 17.02, 0.00, 0.00, 180.00);
- CreateObject(990, -77.04, 2480.05, 17.02, 0.00, 0.00, 135.00);
- CreateObject(18090, -74.90, 2523.10, 18.05, 0.00, 0.00, 146.25);
- CreateObject(14832, -62.43, 2476.03, 17.12, 0.00, 0.00, 90.00);
- CreateObject(14537, -65.84, 2502.76, 17.43, 0.00, 0.00, 0.00);
- CreateObject(10401, -45.90, 2502.25, 17.78, 0.00, 0.00, 225.00);
- CreateObject(1455, -73.59, 2522.92, 16.60, 0.00, 0.00, 0.00);
- CreateObject(1514, -74.34, 2521.30, 16.80, 0.00, 0.00, 56.25);
- CreateObject(643, -57.17, 2525.87, 15.95, 0.00, 0.00, 0.00);
- CreateObject(643, -60.80, 2524.47, 15.96, 0.00, 0.00, 0.00);
- CreateObject(643, -64.98, 2523.24, 15.96, 0.00, 0.00, 0.00);
- CreateObject(643, -62.27, 2520.36, 15.96, 0.00, 0.00, 0.00);
- CreateObject(643, -57.34, 2522.01, 15.96, 0.00, 0.00, 0.00);
- CreateObject(643, -65.62, 2518.89, 15.96, 0.00, 0.00, 0.00);
- CreateObject(643, -76.65, 2513.88, 15.95, 0.00, 0.00, 0.00);
- CreateObject(643, -56.61, 2513.78, 15.96, 0.00, 0.00, 0.00);
- CreateObject(643, -56.07, 2504.56, 15.95, 0.00, 0.00, 0.00);
- CreateObject(1256, -79.66, 2500.12, 16.14, 0.00, 0.00, 180.00);
- CreateObject(1281, -58.71, 2483.94, 16.28, 0.00, 0.00, 0.00);
- CreateObject(1432, -63.81, 2479.70, 15.62, 0.00, 0.00, 0.00);
- CreateObject(1432, -64.37, 2487.28, 15.62, 0.00, 0.00, 0.00);
- CreateObject(1432, -57.80, 2490.99, 15.62, 0.00, 0.00, 0.00);
- CreateObject(1432, -69.77, 2493.89, 15.62, 0.00, 0.00, 0.00);
- CreateObject(1432, -77.26, 2491.83, 15.62, 0.00, 0.00, 303.75);
- CreateObject(1670, -73.28, 2485.20, 16.00, 0.00, 0.00, 0.00);
- CreateObject(1704, -73.48, 2527.24, 15.48, 0.00, 0.00, 11.25);
- CreateObject(1708, -74.79, 2481.40, 15.49, 0.00, 0.00, 90.00);
- CreateObject(1723, -79.42, 2508.20, 15.48, 0.00, 0.00, 90.00);
- CreateObject(1594, -48.51, 2501.06, 15.96, 0.00, 0.00, 0.00);
- CreateObject(1594, -43.32, 2503.04, 15.96, 0.00, 0.00, 0.00);
- CreateObject(1594, -38.44, 2504.13, 15.96, 0.00, 0.00, 0.00);
- CreateObject(1594, -38.05, 2515.23, 15.96, 0.00, 0.00, 0.00);
- CreateObject(1594, -43.83, 2515.49, 15.96, 0.00, 0.00, 0.00);
- CreateObject(1594, -50.17, 2515.32, 15.96, 0.00, 0.00, 11.25);
- CreateObject(3528, -54.08, 2507.41, 20.97, 0.00, 345.39, 0.00);
- CreateObject(19128, -42.64, 2517.34, 15.00, 0.00, 0.00, 0.00);
- CreateObject(19129, -66.51, 2513.67, 15.00, 0.00, 0.00, 0.00);
- CreateObject(19129, -62.44, 2520.63, 15.48, 0.00, 0.00, 0.00);
- CreateObject(19129, -73.14, 2520.53, 15.48, 0.00, 0.00, 0.00);
- CreateObject(19129, -72.43, 2500.72, 15.48, 0.00, 0.00, 0.00);
- CreateObject(19129, -62.28, 2500.81, 15.48, 0.00, 0.00, 0.00);
- CreateObject(19129, -61.86, 2480.97, 15.48, 0.00, 0.00, 0.00);
- CreateObject(19129, -73.35, 2480.85, 15.48, 0.00, 0.00, 0.00);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/Pet", cmdtext, true) == 0 || strcmp("/PS", cmdtext, true) == 0)
- {
- SetPlayerPos(playerid, -26.9942,2508.7129,16.4922);
- SendClientMessage(playerid,0x00FFFFFF,"Pet Store by TnT.WIN.CODExxx!");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid)
- {
- case 1:
- {
- switch(listitem)
- {
- case 0: // Delfin
- {
- if(GetPlayerMoney(playerid) < 11000) return SendClientMessage(playerid, 0xFFFFFF, "Nu ai destui bani.");
- GivePlayerMoney(playerid, -11000);
- dolphin = CreateObject(1607, 0.0, 0.0, 0.0, 0, 0, 0);
- AttachObjectToPlayer(dolphin,playerid,2.0,0.0, 0.0,0,0,1);
- SendClientMessage(playerid, 0xFFFFFF, "{FFA500}You buy a dolphin!");
- }
- case 1: // Rechin
- {
- if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0xFFFFFF, "Nu ai destui bani.");
- GivePlayerMoney(playerid, -20000);
- shark = CreateObject(1608, 0.0, 0.0, 0.0, 0, 0, 0);
- AttachObjectToPlayer(shark,playerid,2.0,0.0, 0.0,0,0,1);
- SendClientMessage(playerid, 0xFFFFFF, "{FFFF00}You buy a shark!");
- }
- case 2: // Broasca
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, "Nu ai destui bani.");
- GivePlayerMoney(playerid, -10000);
- Turtle = CreateObject(1609, 0.0, 0.0, 0.0, 0, 0, 0);
- AttachObjectToPlayer(Turtle,playerid,2.0,0.0, 0.0,0,0,1);
- SendClientMessage(playerid, 0xFFFFFF, "{7FFF00}You buy a turtle!");
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(CPS_IsPlayerInCheckpoint(playerid,Pet))
- {
- ShowPlayerDialog(playerid,0,DIALOG_STYLE_LIST,"ยป Pet Store Menu!","{1E90FF}Dolphin(11000$)\n{00FF7F}Shark(20000$)\n{7FFF00}Turtle(10000$)","Purchase","Cancel");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement