Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Filterscript by Vasic * Credits to Zeex & Y_Less & Incognito*/
- /*[Bilo kakve bugove mi prijavite u PM!]*/
- /*Facebook: Vasic Script*/
- #include < a_samp >
- #include < YSI\y_ini >
- #include < zcmd >
- #include < streamer >
- #include < sscanf2 >
- #define FF_OBJEKAT 1342
- #define FF_FILE "Food/%d.ini"
- #define MAX_FF 100
- enum fFood {
- fMaked,
- Float:fX,
- Float:fY,
- Float:fZ,
- Float:fAngle,
- fObjekat,
- fInt,
- fVW
- }
- new FFInfo[ MAX_FF ][ fFood ];
- new Text3D:fLabel[sizeof(FFInfo)];
- new EditFF[MAX_PLAYERS];
- new PlayerText:hranatd0[MAX_PLAYERS];
- new PlayerText:hranatd1[MAX_PLAYERS];
- new PlayerText:hranatd2[MAX_PLAYERS];
- new PlayerText:hranatd3[MAX_PLAYERS];
- new PlayerText:hranatd4[MAX_PLAYERS];
- new PlayerText:hranatd5[MAX_PLAYERS];
- new PlayerText:hranatd6[MAX_PLAYERS];
- new PlayerText:hranatd7[MAX_PLAYERS];
- new PlayerText:hranatd8[MAX_PLAYERS];
- new PlayerText:hranatd9[MAX_PLAYERS];
- new PlayerText:hranatd10[MAX_PLAYERS];
- new PlayerText:hranatd11[MAX_PLAYERS];
- new PlayerText:hranatd12[MAX_PLAYERS];
- new PlayerText:hranatd13[MAX_PLAYERS];
- new PlayerText:hranatd14[MAX_PLAYERS];
- new PlayerText:hranatd15[MAX_PLAYERS];
- new PlayerText:hranatd16[MAX_PLAYERS];
- stock CTDS(playerid)
- {
- hranatd0[playerid] = CreatePlayerTextDraw(playerid, 464.222229, 98.462959, "usebox");
- PlayerTextDrawLetterSize(playerid, hranatd0[playerid], 0.000000, 23.938478);
- PlayerTextDrawTextSize(playerid, hranatd0[playerid], 172.444442, 0.000000);
- PlayerTextDrawAlignment(playerid, hranatd0[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd0[playerid], 0);
- PlayerTextDrawUseBox(playerid, hranatd0[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd0[playerid], 102);
- PlayerTextDrawSetShadow(playerid, hranatd0[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd0[playerid], 0);
- PlayerTextDrawFont(playerid, hranatd0[playerid], 0);
- hranatd1[playerid] = CreatePlayerTextDraw(playerid, 421.110931, 300.222290, "Izlaz");
- PlayerTextDrawLetterSize(playerid, hranatd1[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, hranatd1[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd1[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd1[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd1[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd1[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd1[playerid], 3);
- PlayerTextDrawSetProportional(playerid, hranatd1[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd1[playerid], true);
- hranatd2[playerid] = CreatePlayerTextDraw(playerid, 221.666702, 108.370384, "Brza Hrana - ~w~Odaberite");
- PlayerTextDrawLetterSize(playerid, hranatd2[playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, hranatd2[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd2[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd2[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd2[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd2[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd2[playerid], 3);
- PlayerTextDrawSetProportional(playerid, hranatd2[playerid], 1);
- hranatd3[playerid] = CreatePlayerTextDraw(playerid, 218.333343, 124.444450, "LD_SPAC:white");
- PlayerTextDrawLetterSize(playerid, hranatd3[playerid], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, hranatd3[playerid], 196.666656, 0.518516);
- PlayerTextDrawAlignment(playerid, hranatd3[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd3[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, hranatd3[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd3[playerid], 0);
- PlayerTextDrawFont(playerid, hranatd3[playerid], 4);
- PlayerTextDrawSetSelectable(playerid, hranatd3[playerid], true);
- hranatd4[playerid] = CreatePlayerTextDraw(playerid, 194.444366, 113.037040, "BURGprwmodel");
- PlayerTextDrawLetterSize(playerid, hranatd4[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, hranatd4[playerid], 81.111137, 96.444450);
- PlayerTextDrawAlignment(playerid, hranatd4[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid,hranatd4[playerid], 0);
- PlayerTextDrawColor(playerid, hranatd4[playerid], -1);
- PlayerTextDrawUseBox(playerid, hranatd4[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd4[playerid], 0);
- PlayerTextDrawSetShadow(playerid, hranatd4[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd4[playerid], 1);
- PlayerTextDrawFont(playerid, hranatd4[playerid], 5);
- PlayerTextDrawSetProportional(playerid, hranatd4[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd4[playerid], true);
- PlayerTextDrawSetPreviewModel(playerid, hranatd4[playerid], 2880);
- PlayerTextDrawSetPreviewRot(playerid, hranatd4[playerid], 218.000000, 100.000000, -30.000000, 1.000000);
- hranatd5[playerid] = CreatePlayerTextDraw(playerid, 308.888793, 117.703704, "PIZZAprwmodel");
- PlayerTextDrawLetterSize(playerid, hranatd5[playerid], 0.449999, 1.600000);
- PlayerTextDrawBackgroundColor(playerid,hranatd5[playerid], 0);
- PlayerTextDrawTextSize(playerid, hranatd5[playerid], 70.555557, 85.555564);
- PlayerTextDrawAlignment(playerid, hranatd5[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd5[playerid], -1);
- PlayerTextDrawUseBox(playerid, hranatd5[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd5[playerid], 0);
- PlayerTextDrawSetShadow(playerid, hranatd5[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd5[playerid], 1);
- PlayerTextDrawFont(playerid, hranatd5[playerid], 5);
- PlayerTextDrawSetProportional(playerid, hranatd5[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd5[playerid], true);
- PlayerTextDrawSetPreviewModel(playerid, hranatd5[playerid], 19580);
- PlayerTextDrawSetPreviewRot(playerid, hranatd5[playerid], 243.000000, 0.000000, 0.000000, 1.000000);
- hranatd6[playerid] = CreatePlayerTextDraw(playerid, 232.222213, 161.777770, "BURG2prwmodel");
- PlayerTextDrawLetterSize(playerid, hranatd6[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, hranatd6[playerid], 81.111137, 96.444450);
- PlayerTextDrawAlignment(playerid, hranatd6[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid,hranatd6[playerid], 0);
- PlayerTextDrawColor(playerid, hranatd6[playerid], -1);
- PlayerTextDrawUseBox(playerid, hranatd6[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd6[playerid], 0);
- PlayerTextDrawSetShadow(playerid, hranatd6[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd6[playerid], 1);
- PlayerTextDrawFont(playerid, hranatd6[playerid], 5);
- PlayerTextDrawSetProportional(playerid, hranatd6[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd6[playerid], true);
- PlayerTextDrawSetPreviewModel(playerid, hranatd6[playerid], 19094);
- PlayerTextDrawSetPreviewRot(playerid, hranatd6[playerid], 342.000000, -90.000000, 20.000000, 1.000000);
- hranatd7[playerid] = CreatePlayerTextDraw(playerid, 307.777801, 168.518554, "BURG3prwmodel");
- PlayerTextDrawLetterSize(playerid, hranatd7[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, hranatd7[playerid], 93.888893, 82.444450);
- PlayerTextDrawAlignment(playerid, hranatd7[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid,hranatd7[playerid], 0);
- PlayerTextDrawColor(playerid, hranatd7[playerid], -1);
- PlayerTextDrawUseBox(playerid, hranatd7[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd7[playerid], 0);
- PlayerTextDrawSetShadow(playerid, hranatd7[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd7[playerid], 1);
- PlayerTextDrawFont(playerid, hranatd7[playerid], 5);
- PlayerTextDrawSetProportional(playerid, hranatd7[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd7[playerid], true);
- PlayerTextDrawSetPreviewModel(playerid, hranatd7[playerid], 2768);
- PlayerTextDrawSetPreviewRot(playerid, hranatd7[playerid], 183.000000, 0.000000, 0.000000, 1.000000);
- hranatd8[playerid] = CreatePlayerTextDraw(playerid, 240.555541, 226.074050, "PICEprwmodel");
- PlayerTextDrawLetterSize(playerid, hranatd8[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, hranatd8[playerid], 66.111122, 88.148147);
- PlayerTextDrawAlignment(playerid, hranatd8[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd8[playerid], -1);
- PlayerTextDrawUseBox(playerid, hranatd8[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd8[playerid], 0);
- PlayerTextDrawBackgroundColor(playerid,hranatd8[playerid], 0);
- PlayerTextDrawSetShadow(playerid, hranatd8[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd8[playerid], 1);
- PlayerTextDrawFont(playerid, hranatd8[playerid], 5);
- PlayerTextDrawSetProportional(playerid, hranatd8[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd8[playerid], true);
- PlayerTextDrawSetPreviewModel(playerid,hranatd8[playerid], 1520);
- hranatd9[playerid] = CreatePlayerTextDraw(playerid, 326.111053, 242.666732, "PICE2prwmodel");
- PlayerTextDrawLetterSize(playerid, hranatd9[playerid], 0.449999, 1.600000);
- PlayerTextDrawTextSize(playerid, hranatd9[playerid], 54.444450, 71.555557);
- PlayerTextDrawAlignment(playerid, hranatd9[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd9[playerid], -1);
- PlayerTextDrawUseBox(playerid, hranatd9[playerid], true);
- PlayerTextDrawBoxColor(playerid, hranatd9[playerid], 0);
- PlayerTextDrawBackgroundColor(playerid,hranatd9[playerid], 0);
- PlayerTextDrawSetShadow(playerid, hranatd9[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd9[playerid], 1);
- PlayerTextDrawFont(playerid, hranatd9[playerid], 5);
- PlayerTextDrawSetProportional(playerid, hranatd9[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, hranatd9[playerid], true);
- PlayerTextDrawSetPreviewModel(playerid, hranatd9[playerid], 1664);
- hranatd10[playerid] = CreatePlayerTextDraw(playerid, 253.888916, 126.518516, "~g~+4~w~hp");
- PlayerTextDrawLetterSize(playerid, hranatd10[playerid], 0.268333, 1.211112);
- PlayerTextDrawAlignment(playerid, hranatd10[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd10[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd10[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd10[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd10[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd10[playerid], 2);
- PlayerTextDrawSetProportional(playerid, hranatd10[playerid], 1);
- hranatd11[playerid] = CreatePlayerTextDraw(playerid, 325.555419, 124.962951, "~g~+6~w~hp");
- PlayerTextDrawLetterSize(playerid, hranatd11[playerid], 0.281111, 1.190370);
- PlayerTextDrawAlignment(playerid, hranatd11[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd11[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd11[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd11[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd11[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd11[playerid], 2);
- PlayerTextDrawSetProportional(playerid, hranatd11[playerid], 1);
- hranatd12[playerid] = CreatePlayerTextDraw(playerid, 255.555603, 181.481475, "~g~+5~w~hp");
- PlayerTextDrawLetterSize(playerid, hranatd12[playerid], 0.268888, 1.159259);
- PlayerTextDrawAlignment(playerid, hranatd12[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd12[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd12[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd12[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd12[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd12[playerid], 2);
- PlayerTextDrawSetProportional(playerid, hranatd12[playerid], 1);
- hranatd13[playerid] = CreatePlayerTextDraw(playerid, 329.999877, 181.999984, "~g~+10~w~hp");
- PlayerTextDrawLetterSize(playerid, hranatd13[playerid], 0.290000, 1.351112);
- PlayerTextDrawAlignment(playerid, hranatd13[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd13[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd13[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd13[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd13[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd13[playerid], 2);
- PlayerTextDrawSetProportional(playerid, hranatd13[playerid], 1);
- hranatd14[playerid] = CreatePlayerTextDraw(playerid, 257.222351, 235.925994, "~g~+2~w~hp");
- PlayerTextDrawLetterSize(playerid, hranatd14[playerid], 0.251111, 1.351111);
- PlayerTextDrawAlignment(playerid, hranatd14[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd14[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd14[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd14[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd14[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd14[playerid], 2);
- PlayerTextDrawSetProportional(playerid, hranatd14[playerid], 1);
- hranatd15[playerid] = CreatePlayerTextDraw(playerid, 334.444305, 236.962982, "~g~+2~w~hp");
- PlayerTextDrawLetterSize(playerid, hranatd15[playerid], 0.302777, 1.325185);
- PlayerTextDrawAlignment(playerid, hranatd15[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd15[playerid], -1);
- PlayerTextDrawSetShadow(playerid, hranatd15[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd15[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd15[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd15[playerid], 2);
- PlayerTextDrawSetProportional(playerid, hranatd15[playerid], 1);
- hranatd16[playerid] = CreatePlayerTextDraw(playerid, 176.111129, 306.963073, "FastFood by ~w~Vasic");
- PlayerTextDrawLetterSize(playerid, hranatd16[playerid], 0.167222, 0.998519);
- PlayerTextDrawAlignment(playerid, hranatd16[playerid], 1);
- PlayerTextDrawColor(playerid, hranatd16[playerid], -16776961);
- PlayerTextDrawSetShadow(playerid, hranatd16[playerid], 0);
- PlayerTextDrawSetOutline(playerid, hranatd16[playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, hranatd16[playerid], 51);
- PlayerTextDrawFont(playerid, hranatd16[playerid], 3);
- PlayerTextDrawSetProportional(playerid, hranatd16[playerid], 1);
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- for(new i = 0; i < sizeof(FFInfo); i++)
- {
- new baFile[50];
- format(baFile, sizeof(baFile), FF_FILE, i);
- if(fexist(baFile))
- {
- INI_ParseFile(baFile, "LoadFF", .bExtra = true, .extra = i);
- new string[80];
- format(string, sizeof(string), "{0084e3}[ FastFood %d ]\n{FFFFFF}Da jedete - {0084e3}/jedi", i);
- fLabel[i] = CreateDynamic3DTextLabel(string ,-1,FFInfo[i][fX], FFInfo[i][fY], FFInfo[i][fZ],30);
- FFInfo[i][fObjekat] = CreateDynamicObject(FF_OBJEKAT, FFInfo[i][fX], FFInfo[i][fY], FFInfo[i][fZ], 0.0, 0.0, FFInfo[i][fAngle], FFInfo[i][fVW], FFInfo[i][fInt], -1, 200.0);
- }
- }
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid,-1,"Komande su /makefastfood & /jedi | by Vasic | Ideju dao Fusion Gaming");
- EditFF[playerid] = 0; CTDS(playerid);
- return 1;
- }
- forward LoadFF(fid, name[], value[]);
- public LoadFF(fid, name[], value[])
- {
- INI_Int("Maked",FFInfo[fid][fMaked]);
- INI_Float("X",FFInfo[fid][fX]);
- INI_Float("Y",FFInfo[fid][fY]);
- INI_Float("Z",FFInfo[fid][fZ]);
- INI_Float("Angle",FFInfo[fid][fAngle]);
- INI_Int("Int",FFInfo[fid][fInt]);
- INI_Int("VW",FFInfo[fid][fVW]);
- return 1;
- }
- stock SacuvajFF(fid)
- {
- new kFile[80];
- format(kFile, sizeof(kFile), FF_FILE, fid);
- new INI:File = INI_Open(kFile);
- INI_WriteInt(File,"Maked",FFInfo[fid][fMaked]);
- INI_WriteFloat(File,"X",FFInfo[fid][fX]);
- INI_WriteFloat(File,"Y",FFInfo[fid][fY]);
- INI_WriteFloat(File,"Z",FFInfo[fid][fZ]);
- INI_WriteFloat(File,"Angle",FFInfo[fid][fAngle]);
- INI_WriteInt(File,"Int",FFInfo[fid][fInt]);
- INI_WriteInt(File,"VW",FFInfo[fid][fVW]);
- INI_Close(File);
- return 1;
- }
- stock PlayerAtFastFood(playerid)
- {
- new ffid = 0;
- while(ffid != MAX_FF)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, FFInfo[ffid][fX], FFInfo[ffid][fY], FFInfo[ffid][fZ]))
- {
- return ffid;
- }
- ffid++;
- }
- return -1;
- }
- stock NextFF()
- {
- new file[64];
- for(new ffid = 0; ffid < MAX_FF; ffid++)
- {
- format(file, sizeof(file), FF_FILE, ffid);
- if(!fexist(file)) return ffid;
- }
- return true;
- }
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- if(response == EDIT_RESPONSE_FINAL)
- {
- if(EditFF[playerid] == 1)
- {
- new id = NextFF(), Float:angle, string[100];
- GetPlayerFacingAngle(playerid, angle);
- FFInfo[id][fX] = x;
- FFInfo[id][fY] = y;
- FFInfo[id][fZ] = z;
- FFInfo[id][fAngle] = rz;
- DestroyDynamicObject(FFInfo[id][fObjekat]);
- //new string[80];
- format(string, sizeof(string), "{0084e3}[ FastFood %d ]\n{FFFFFF}Da jedete - {0084e3}/jedi", id);
- fLabel[id] = CreateDynamic3DTextLabel(string ,-1,FFInfo[id][fX], FFInfo[id][fY], FFInfo[id][fZ],30);
- FFInfo[id][fObjekat] = CreateDynamicObject(FF_OBJEKAT, FFInfo[id][fX], FFInfo[id][fY], FFInfo[id][fZ], 0.0, 0.0, FFInfo[id][fAngle], FFInfo[id][fVW], FFInfo[id][fInt], -1, 200.0);
- SacuvajFF(id);
- format(string,sizeof(string),"{0084e3}Napravil ste FastFood ID: {FFFFFF}%d",id);
- SendClientMessage(playerid,-1,string);
- EditFF[playerid] = 0;
- return 1;
- }
- }
- return 1;
- }
- CMD:makefastfood(playerid, params[])
- {
- new ffid = NextFF(), Float:X2, Float:Y2, Float:Z2, Float:Angle, ffile[60];
- GetPlayerPos(playerid, X2, Y2, Z2); GetPlayerFacingAngle(playerid, Angle);
- if(EditFF[playerid] == 1) return SendClientMessage(playerid,-1,"Vec pravite FastFood!");
- // if(sscanf(params, "i",ffid)) return SendClientMessage(playerid,-1,"{0084e3}/makefastfood {ffffff}(id)");
- if(ffid >= MAX_FF) return SendClientMessage(playerid,-1, "Ne mozete kreirati vise FastFood-ova.");
- format(ffile, sizeof(ffile), FF_FILE, ffid);
- if(fexist(ffile)) return SendClientMessage(playerid,-1,"Isti ID Fastfooda vec postoji.");
- EditFF[playerid] = 1;
- FFInfo[ffid][fMaked] = 1;
- FFInfo[ffid][fX] = X2;
- FFInfo[ffid][fY] = Y2;
- FFInfo[ffid][fZ] = Z2;
- FFInfo[ffid][fAngle] = Angle;
- FFInfo[ffid][fInt] = GetPlayerInterior(playerid);
- FFInfo[ffid][fVW] = GetPlayerVirtualWorld(playerid);
- FFInfo[ffid][fObjekat] = CreateDynamicObject(FF_OBJEKAT, FFInfo[ffid][fX], FFInfo[ffid][fY], FFInfo[ffid][fZ], 0.0, 0.0, FFInfo[ffid][fAngle], FFInfo[ffid][fVW], FFInfo[ffid][fInt], -1, 200.0);
- EditDynamicObject(playerid,FFInfo[ffid][fObjekat]);
- SendClientMessage(playerid,-1,"{0084e3}Sada postavite Fastfood.");
- return 1;
- }
- CMD:jedi(playerid, params[])
- {
- if(PlayerAtFastFood(playerid) == -1) return SendClientMessage(playerid,-1,"Morate biti kod FastFooda.");
- {
- SelectTextDraw(playerid, 0xAA3333AA);
- PlayerTextDrawShow(playerid, hranatd0[playerid]);
- PlayerTextDrawShow(playerid, hranatd1[playerid]);
- PlayerTextDrawShow(playerid, hranatd2[playerid]);
- PlayerTextDrawShow(playerid, hranatd3[playerid]);
- PlayerTextDrawShow(playerid, hranatd4[playerid]);
- PlayerTextDrawShow(playerid, hranatd5[playerid]);
- PlayerTextDrawShow(playerid, hranatd6[playerid]);
- PlayerTextDrawShow(playerid, hranatd7[playerid]);
- PlayerTextDrawShow(playerid, hranatd8[playerid]);
- PlayerTextDrawShow(playerid, hranatd9[playerid]);
- PlayerTextDrawShow(playerid, hranatd10[playerid]);
- PlayerTextDrawShow(playerid, hranatd11[playerid]);
- PlayerTextDrawShow(playerid, hranatd12[playerid]);
- PlayerTextDrawShow(playerid, hranatd13[playerid]);
- PlayerTextDrawShow(playerid, hranatd14[playerid]);
- PlayerTextDrawShow(playerid, hranatd15[playerid]);
- PlayerTextDrawShow(playerid, hranatd16[playerid]);
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if( playertextid == hranatd1[ playerid ] )
- {
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if( playertextid == hranatd4[ playerid ] )
- {
- new Float:flutic;
- GetPlayerHealth(playerid, flutic);
- SetPlayerHealth(playerid, flutic+4);
- SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Pljeskavicu{FFFFFF} i dobili ste{0084e3} +4hp.");
- ApplyAnimation(playerid, "FOOD", "EAT_Burger",4.1,0,1,1,0,0);
- GivePlayerMoney(playerid, -10);
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if( playertextid == hranatd5[ playerid ] )
- {
- SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Pizzu{FFFFFF} i dobili ste{0084e3} +6hp.");
- ApplyAnimation(playerid, "FOOD", "EAT_Pizza",4.1,0,1,1,0,0);
- GivePlayerMoney(playerid, -10);
- new Float:flutic;
- GetPlayerHealth(playerid, flutic);
- SetPlayerHealth(playerid, flutic+6);
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if( playertextid == hranatd6[ playerid ] )
- {
- SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Hamburger{FFFFFF} i dobili ste{0084e3} +5hp.");
- ApplyAnimation(playerid, "FOOD", "EAT_Burger",4.1,0,1,1,0,0);
- GivePlayerMoney(playerid, -10);
- new Float:flutic;
- GetPlayerHealth(playerid, flutic);
- SetPlayerHealth(playerid, flutic+5);
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if( playertextid == hranatd7[ playerid ] )
- {
- SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Piletinu{FFFFFF} i dobili ste{0084e3} +10hp.");
- ApplyAnimation(playerid, "FOOD", "EAT_Chicken",4.1,0,1,1,0,0);
- GivePlayerMoney(playerid, -10);
- new Float:flutic;
- GetPlayerHealth(playerid, flutic);
- SetPlayerHealth(playerid, flutic+10);
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if( playertextid == hranatd8[ playerid ] )
- {
- SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Vino{FFFFFF} i dobili ste{0084e3} +2hp.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- GivePlayerMoney(playerid, -10);
- new Float:flutic;
- GetPlayerHealth(playerid, flutic);
- SetPlayerHealth(playerid, flutic+2);
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- if( playertextid == hranatd9[ playerid ] )
- {
- SendClientMessage(playerid, -1, "{FFFFFF}Kupili ste {0084e3}Pivo{FFFFFF} i dobili ste{0084e3} +2hp.");
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
- GivePlayerMoney(playerid, -10);
- new Float:flutic;
- GetPlayerHealth(playerid, flutic);
- SetPlayerHealth(playerid, flutic+2);
- PlayerTextDrawHide(playerid, hranatd0[playerid]);
- PlayerTextDrawHide(playerid, hranatd1[playerid]);
- PlayerTextDrawHide(playerid, hranatd2[playerid]);
- PlayerTextDrawHide(playerid, hranatd3[playerid]);
- PlayerTextDrawHide(playerid, hranatd4[playerid]);
- PlayerTextDrawHide(playerid, hranatd5[playerid]);
- PlayerTextDrawHide(playerid, hranatd6[playerid]);
- PlayerTextDrawHide(playerid, hranatd7[playerid]);
- PlayerTextDrawHide(playerid, hranatd8[playerid]);
- PlayerTextDrawHide(playerid, hranatd9[playerid]);
- PlayerTextDrawHide(playerid, hranatd10[playerid]);
- PlayerTextDrawHide(playerid, hranatd11[playerid]);
- PlayerTextDrawHide(playerid, hranatd12[playerid]);
- PlayerTextDrawHide(playerid, hranatd13[playerid]);
- PlayerTextDrawHide(playerid, hranatd14[playerid]);
- PlayerTextDrawHide(playerid, hranatd15[playerid]);
- PlayerTextDrawHide(playerid, hranatd16[playerid]);
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement