Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <YSI\y_va>
- #include <YSI\y_timers>
- #include "../include/gl_messages.inc"
- new klanja[MAX_PLAYERS];
- static const _AnimsEnum[][] =
- {
- "COP_AMBIENT", "FAT", "RIOT" , "ped", "SUNBATHE"
- };
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Filterscript by Kleo ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- for(new anims = 0; anims < sizeof(_AnimsEnum); anims ++)
- {
- ApplyAnimation(playerid, _AnimsEnum[anims], "null", 4.0, 0, 0, 0, 0, 0, 1);
- }
- klanja[playerid] = 0;
- return 1;
- }
- YCMD:namaz(playerid, params[],help)
- {
- if(klanja[playerid] == 1) return SendClientMessage(playerid,-1,"Vec klanjas!"); klanja[playerid] = 1;
- TalkMessage(TALK_DISTANCE, playerid, "", "NEVEJTU EN USALLIJE LILLAHI TEALA SALATE SUNNETIL-FEDZRI, EDAEN MUSTAKBILEL-KIBLETI, ALLAHU EKBER");
- defer first(playerid);
- return 1;
- }
- timer first[2000](playerid)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
- defer second(playerid);
- }
- timer second[800](playerid)
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_watch", 4.0, 0, 0, 0, 1, 0, 0);
- defer third(playerid);
- }
- timer third[7000](playerid)
- {
- ApplyAnimation(playerid, "FAT", "IDLE_tired", 4.0, 1, 0, 0, 0, 0);
- defer fourth(playerid);
- }
- timer fourth[2000](playerid)
- {
- ApplyAnimation(playerid, "RIOT", "RIOT_challenge", 4.0, 0, 0, 0, 1, 0, 0);
- defer fifth(playerid);
- }
- timer fifth[3000](playerid)
- {
- ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
- defer sixtha(playerid);
- }
- timer sixtha[800](playerid)
- {
- ApplyAnimation(playerid, "SUNBATHE", "ParkSit_M_IdleB", 4.0, 0, 0, 0, 0, 0);
- defer sixthb(playerid);
- return 1;
- }
- timer sixthb[1000](playerid)
- {
- ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
- defer seventh(playerid);
- return 1;
- }
- timer seventh[3000](playerid)
- {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_think", 4.0, 0, 0, 0, 1, 0, 0);
- defer eight(playerid);
- return 1;
- }
- timer eight[7000](playerid)
- {
- ApplyAnimation(playerid, "FAT", "IDLE_tired", 4.0, 1, 0, 0, 0, 0);
- defer nine(playerid);
- }
- timer nine[2000](playerid)
- {
- ApplyAnimation(playerid, "RIOT", "RIOT_challenge", 4.0, 0, 0, 0, 1, 0, 0);
- defer ten(playerid);
- }
- timer ten[2000](playerid)
- {
- ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
- defer eleven(playerid);
- return 1;
- }
- timer eleven[800](playerid)
- {
- ApplyAnimation(playerid, "SUNBATHE", "ParkSit_M_IdleB", 4.0, 0, 0, 0, 0, 0);
- defer twelve(playerid);
- return 1;
- }
- timer twelve[1000](playerid)
- {
- ApplyAnimation(playerid, "ped", "cower", 4.0, 0, 0, 0, 0, 0);
- defer trines(playerid);
- return 1;
- }
- timer trines[800](playerid)
- {
- ApplyAnimation(playerid, "SUNBATHE", "ParkSit_M_IdleB", 4.0, 0, 0, 0, 0, 0);
- defer fourthteen(playerid);
- return 1;
- }
- timer fourthteen[5000](playerid)
- {
- ClearAnimations(playerid); klanja[playerid] = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement