Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <a_mysql>
- #include <streamer>
- #include <yom_buttons>
- #include <ZCMD>
- #include <sscanf2>
- #include <foreach>
- #include <YSI\y_timers>
- #include <YSI\y_utils>
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_GREEN 0x33AA33AA
- #define NGUYENLIEU (6060)
- #define NGUYENLIEU1 (6061)
- #define NGUYENLIEU2 (6062)
- #define NGUYENLIEU3 (6063)
- //new nguyenlieu[MAX_PLAYERS];
- //new nguyenlieu1[MAX_PLAYERS];
- //new nguyenlieu2[MAX_PLAYERS];
- //new nguyenlieu3[MAX_PLAYERS];
- new InsideMainMenu[MAX_PLAYERS char];
- new InsideTut[MAX_PLAYERS char];
- new ActiveChatbox[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" He thong Cong Nhan o Xuongg");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" He thong Cong Nhan o Xuong.M");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- CreateObject(19377, 1385.13916, -39.56961, 1006.79834, 0.00000, 90.00000, 0.00000);
- CreateObject(1689, 1385.34290, -35.79916, 1007.61072, 0.00000, 0.00000, 180.00000);
- CreateObject(3273, 1385.33630, -35.75626, 1006.78540, 0.00000, 0.00000, 90.00000);
- CreateObject(3631, 1381.52979, -18.60523, 999.90808, 0.00000, 0.00000, 0.00000);
- CreateObject(1571, 1385.30518, -38.52512, 1008.17163, 0.00000, 0.00000, 0.00000);
- CreateObject(922, 1381.07520, -39.60163, 1007.74426, 0.00000, 0.00000, 86.93999);
- CreateObject(3761, 1414.40405, -10.63901, 1001.94812, 0.00000, 0.00000, 90.00000);
- CreateObject(3761, 1414.33215, -16.04379, 1001.90515, 0.00000, 0.00000, 90.00000);
- CreateObject(3761, 1414.20850, -22.42271, 1001.90515, 0.00000, 0.00000, 90.00000);
- CreateObject(3761, 1414.32275, -28.60545, 1001.90515, 0.00000, 0.00000, 90.00000);
- CreateObject(3761, 1414.68884, -39.10107, 1001.90515, 0.00000, 0.00000, 90.00000);
- CreateObject(3761, 1414.31238, -42.75356, 1001.90515, 0.00000, 0.00000, 90.00000);
- CreateObject(5132, 1393.76501, -46.09851, 1001.73889, 0.00000, 0.00000, 88.32000);
- CreateObject(5262, 1362.16382, -32.61154, 1002.86780, 0.00000, 0.00000, 180.00000);
- CreateObject(5132, 1363.09924, -8.81667, 1001.73889, 0.00000, 0.00000, 0.00000);
- CreateObject(934, 1386.03320, -18.63145, 1001.36444, 0.00000, 0.00000, 0.00000);
- CreateObject(1687, 1383.64795, -20.30509, 1000.69147, 0.00000, 0.00000, 0.00000);
- CreateObject(1691, 1387.03857, -18.70460, 1000.07123, 0.00000, 0.00000, 0.00000);
- CreateObject(2669, 1375.04138, -18.51111, 1000.11768, 0.00000, 0.00000, 90.00000);
- CreateObject(1221, 1373.15564, -19.38161, 1000.31390, 0.00000, 0.00000, 0.00000);
- CreateObject(1221, 1373.11096, -17.90460, 1000.31390, 0.00000, 0.00000, 0.00000);
- CreateObject(1221, 1374.54443, -18.53521, 1000.31390, 0.00000, 0.00000, 0.00000);
- CreateObject(1221, 1375.45959, -19.23653, 1000.31390, 0.00000, 0.00000, 0.00000);
- CreateObject(1221, 1375.40869, -17.73726, 1000.31390, 0.00000, 0.00000, 0.00000);
- CreateObject(1221, 1375.40869, -17.73726, 1000.31390, 0.00000, 0.00000, 0.00000);
- CreateObject(910, 1373.61389, 6.83300, 1001.14508, 0.00000, 0.00000, 0.00000);
- CreateObject(910, 1375.45789, 6.80102, 1001.14508, 0.00000, 0.00000, 0.00000);
- CreateObject(910, 1371.74988, 6.86402, 1001.14508, 0.00000, 0.00000, 0.00000);
- CreateObject(3586, 1368.19812, -5.34728, 1003.47095, 0.00000, 0.00000, -90.00000);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- 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[])
- {
- return 1;
- }
- 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[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:laynguyenlieu(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, 1373.9840, 5.0695, 1000.9159))
- {
- if(GetPVarInt(playerid, "BatDauLayNguyenLieu") == 1)
- {
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,1,0,0,1,1);
- SetPlayerAttachedObject(playerid, 1, 2814, 1, 0.000000, 0.500000, -0.009999, 0.000000, 90.000000, 0.000000);
- SetPVarInt(playerid, "DaLayNguyenLieu", 1);
- SetPlayerCheckpoint(playerid, 1385.3964,-41.3725,1007.8843, 4.0);
- }
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, " ban da Nhan Duoc Nguyen Lieu - Hay Den Noi che tao! ");
- }
- else return SendClientMessage(playerid,COLOR_RED, " ban khong dung gan noi lay nguyen lieu! ");
- }
- return 1;
- }
- CMD:chebien(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 4.0, 1385.3964,-41.3725,1007.8843))
- {
- if(GetPVarInt(playerid, "ThucPhamCheTao") == 1)
- {
- new string[128];
- format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~%d giay", GetPVarInt(playerid, "ThucPhamCheTao"));
- GameTextForPlayer(playerid, string, 10000, 3);
- // DeletePVar(playerid, "LayNguyenLieu");
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,1,0,0,1,1);
- SetPlayerAttachedObject(playerid, 1, 1448, 1, 0.070000, 0.730000, 0.000000, 0.000000, -90.000000, 0.000000);
- SetPVarInt(playerid, "LayThucPhamCheTao", 1);
- SetPlayerCheckpoint(playerid, 1384.6870,-17.3328,1000.9226, 4.0);
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, " may dang bat dau che tao!");
- }
- else return SendClientMessage(playerid, COLOR_YELLOW, " Ban khong dung gan noi che bien!");
- }
- stock SendClientMessageEx(playerid, color, string[])
- {
- if(InsideMainMenu{playerid} == 1 || InsideTut{playerid} == 1 || ActiveChatbox[playerid] == 0)
- return 0;
- else SendClientMessage(playerid, color, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement