Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("----------------------------------------");
- print(" Anim FilterScript Created By Vlad");
- print("----------------------------------------");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- if (!strcmp("/smoke",cmdtext,true,7))
- {
- if (GetPlayerMoney(playerid) - 5 <0) return SendClientMessage(playerid,0xFFC800FF,"You don't have enough money! You need $5!");
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
- GivePlayerMoney (playerid, -5);
- SendClientMessage (playerid, 0xFA73F8, "You bought a cigaret for $5!");
- return 1;
- }
- if (!strcmp("/beer",cmdtext,true,7))
- {
- if (GetPlayerMoney(playerid) - 10 <0) return SendClientMessage(playerid,0xFFC800FF,"You don't have enough money! You need $10!");
- SetPlayerSpecialAction (playerid,SPECIAL_ACTION_DRINK_WINE);
- GivePlayerMoney (playerid, -10);
- SendClientMessage (playerid, 0xFA73F8, "You bought a beer for $10!");
- return 1;
- }
- if (!strcmp("/sprunk",cmdtext,true,7))
- {
- if (GetPlayerMoney(playerid) - 6 <0) return SendClientMessage(playerid,0xFFC800FF,"You don't have enough money! You need $6!");
- SetPlayerSpecialAction (playerid,SPECIAL_ACTION_DRINK_SPRUNK);
- GivePlayerMoney (playerid, -6);
- SendClientMessage (playerid, 0xFA73F8, "You bought a sprunk for $6!");
- return 1;
- }
- if (!strcmp("/selftie",cmdtext,true,7))
- {
- SendClientMessage (playerid, 0x57ED4A, "You cuffed yourself!");
- SendClientMessage (playerid, 0x57ED4A, "If you want to get uncuffed talk with an admin!");
- SetPlayerSpecialAction (playerid,SPECIAL_ACTION_CUFFED);
- TogglePlayerControllable (playerid, 0);
- return 1;
- }
- if (!strcmp("/handsup",cmdtext,true,7))
- {
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_HANDSUP);
- return 1;
- }
- if (!strcmp("/stopanim",cmdtext,true,7))
- {
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_NONE);
- return 1;
- }
- if (!strcmp("/dance1",cmdtext,true,7))
- {
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE1);
- return 1;
- }
- if (!strcmp("/dance2",cmdtext,true,7))
- {
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE2);
- return 1;
- }
- if (!strcmp("/dance3",cmdtext,true,7))
- {
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE3);
- return 1;
- }
- if (!strcmp("/dance4",cmdtext,true,7))
- {
- SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE4);
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement