Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- --------------------FilterScript Created By: Antonio_Cadenas--------------------
- ----------------------------------HOTDOG SYSTEM---------------------------------
- -----------------------------[DO NOT REMOVE CREDITS]----------------------------
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #define Gray 0xAFAFAFAA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_WHITE 0xFFFFFFAA
- new HasHotDog[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- Create3DTextLabel("Hot Dog Stall, Use {FFFFFF}/HotDog ",0xFF0000AA,1497.3090,-1633.5553,14.0469,20.0,0); // < Sin funcion (No borrar)
- Create3DTextLabel("Hot Dog Stall, Use {FFFFFF}/HotDog ",0xFF0000AA,1497.3090,-1633.5553,14.0469,20.0,0);
- Create3DTextLabel("Hot Dog Stall, Use {FFFFFF}/HotDog",0xFF0000AA,1468.1287,-1678.5992,14.0469,20.0,0);
- Create3DTextLabel("Hot Dog Stall, Use {FFFFFF}/HotDog",0xFF0000AA,1811.2280,-1843.0420,13.5781,20.0,0);
- CreatePickup(1239, 1, 1497.3090,-1633.5553,14.0469); // < Sin funcion (No borrar)
- CreatePickup(1239, 1, 1497.3090,-1633.5553,14.0469);
- CreatePickup(1239, 1, 1468.1287,-1678.5992,14.0469);
- CreatePickup(1239, 1, 1811.2280,-1843.0420,13.5781);
- CreateObject(1340, 1496.6999511719, -1632.6999511719, 14.199999809265, 0, 0, 306);
- CreateObject(1341, 1467, -1678.9000244141, 14, 0, 0, 32);
- CreateObject(1340, 1810.5, -1843.8000488281, 13.699999809265, 0, 0, 44);
- return 1;
- }
- CMD:eathotdog(playerid, params[])
- {
- if(IsPlayerConnected(playerid))
- {
- if(HasHotDog[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_WHITE, "You Dont Have Any HotDog");
- return 1;
- }
- HasHotDog[playerid] --;
- new string[256];
- format(string, 256, "{FFFFFF}As You Have Eaten A HotDog. Now You Have Left {FF0000}%d {FFFFFF}HotDog(s)", HasHotDog);
- SendClientMessage(playerid, Gray, string);
- SetPlayerHealth(playerid, 100.0);
- }
- return 1;
- }
- CMD:hotdog(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid,2,1497.3090,-1633.5553,14.0469) || IsPlayerInRangeOfPoint(playerid,2,1468.1287,-1678.5992,14.0469) || IsPlayerInRangeOfPoint(playerid,2,1811.2280,-1843.0420,13.5781))
- {
- if(HasHotDog[playerid] == 3)
- {
- SendClientMessage(playerid, Gray, "{FFFFFF}You Can Only Buy{FF0000}3 {FFFFFF}HotDog.");
- return 1;
- }
- if(GetPlayerMoney(playerid) < 50)
- {
- SendClientMessage(playerid, Gray, "{FFFFFF}You Dont Have Enough Money To Buy HotDog. You Need{FF0000}$50 {FFFFFF}To Buy A HotDog.");
- return 1;
- }
- HasHotDog[playerid] += 1;
- new string[256];
- format(string, 256, "{FFFFFF}You Bought A HotDog For {FF0000}$50{FFFFFF}, You Now Have Total Number Of {FF0000}%d {FFFFFF}HotDog(s)", HasHotDog);
- SendClientMessage(playerid, Gray, string);
- GivePlayerMoney(playerid, -50);
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "You Are Not Near To Any of The HotDog Stalls");
- return 1;
- }
- return 1;
- }
- /*
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- --------------------FilterScript Created By: Antonio_Cadenas--------------------
- ----------------------------------HOTDOG SYSTEM---------------------------------
- -----------------------------[DO NOT REMOVE CREDITS]----------------------------
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement