Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //made by luigifan9
- //Please do not steal my work. If you want to work on somethign with me, id be happy to
- //If you take part of this give me part credits
- //Have fun!!!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n************************************");
- print(" Army Help");
- print("**************************************\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/ArmyHelp", cmdtext, true, 10) == 0)
- {
- if(GetPlayerSkin(playerid) == 287)
- {
- SendClientMessage(playerid, 0x87FF00FF, "Army Help by lugiifan9");
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you need, Soldier?", "Money\nWeapons\nTransportation\nHealth\nExplosion(Deadly)\nSmoke\nHeli", "Choose", "Cancel");
- }
- return 1;
- }
- return 0;
- }
- new Float:hx, Float:hy, Float:hz;
- new Float:cx, Float:cy, Float:cz;
- new Float:bx, Float:by, Float:bz;
- new Float:ax, Float:ay, Float:az;
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1 && response)
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerMoney(playerid, 10000);
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 29, 1000);
- }
- case 2:
- {
- GetPlayerPos(playerid, bx, by, bz);
- CreateVehicle(470, bx+5, by+5, bz+5, 90, 6, 6, 10000000000);
- }
- case 3:
- {
- SetPlayerHealth(playerid, 100);
- }
- case 4:
- {
- GetPlayerPos(playerid, ax, ay, az);
- CreateExplosion(ax, ay, az, 0, 15);
- }
- case 5:
- {
- GetPlayerPos(playerid, cx, cy, cz);
- CreateObject(2780, cx, cy+3, cz, 90, 90, 90);
- }
- case 6:
- {
- GetPlayerPos(playerid, hx, hy, hz);
- CreateVehicle(548, hx+5, hy+5, hz+5, 90, 1, 1, 100000000000);
- }
- }
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
Advertisement
Add Comment
Please, Sign In to add comment