Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- new Float:SomePlaceSpawns[10][3] =
- {
- {169.3676,-1884.4700,1.4527}, // ñôàåï îåëï
- {171.5134,-1884.7871,1.4541}, // ñôàåï îåëï
- {174.4242,-1884.3429,1.5821}, // ñôàåï îåëï
- {177.0797,-1884.9271,1.5561}, // ñôàåï îåëï
- {179.3890,-1885.4520,1.5310}, // ñôàåï îåëï
- {181.6822,-1885.7495,1.5385}, // ñôàåï îåëï
- {183.8194,-1886.4456,1.4849}, // ñôàåï îåëï
- {187.0680,-1886.9874,1.4057}, // ñôàåï îåëï
- {189.7822,-1887.1918,1.3592}, // ñôàåï îåëï
- {192.4526,-1887.4614,1.3074}, // ñôàåï îåëï
- };
- new inAct[MAX_PLAYERS];
- new M[MAX_PLAYERS];
- new rand;
- forward ACT_CountDown(Seconds);
- forward AB(i);
- forward ABC(i);
- forward AQ(i);
- forward AQA(i);
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- 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)
- {
- inAct[playerid] = 0;
- M[playerid] = 0;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/B", cmdtext, true, 10) == 0)
- {
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFAA,"!ô÷åãä ìàãîéï ø÷åï áìáã");
- SendClientMessageToAll(0x24FF0AB9, " ------->> ôòéìåú éí éáùä äúçéì <<--------");
- SendClientMessageToAll(0xFFFFFFAA, ">> /BJoin :ìäöèøôåú ìôòéìåú ä÷éùå");
- SendClientMessageToAll(0xFFFFFFAA, ">> éù ë 20 î÷åîåú áôòéìåú");
- SendClientMessageToAll(0xFFFFFFAA, ">> éù ìëí ë 30 ùðéåú ìäöèøó ìôòéìåú");
- SendClientMessageToAll(0x24FF0AB9, " -------->> By Matanel - îúðàì <<--------");
- M[playerid] = 1;
- ACT_CountDown(30);
- }
- }
- if (strcmp("/BJoin", cmdtext, true, 10) == 0)
- {
- if(M[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,".äôòéìåú éí éáùä ìà ôåòìú ëøâò");
- if(inAct[playerid] == 1) return SendClientMessage(playerid,0xFF0000FF,".àúä ëáø øùåí ìôòéìåú - àðà çëä ìñéåí äñôéøä");
- if(rand == sizeof(SomePlaceSpawns)) return SendClientMessage(playerid,0xFF0000FF,".ëì äî÷åîåú ðúôñå ðñä ôòí äáàä");
- new A[MAX_PLAYER_NAME];
- new str[128];
- GetPlayerName(playerid,A,24);
- format(str,128,">> äöèøó ìôòéìåú éí éáùä %s äùç÷ï",A);
- SendClientMessageToAll(0xFFFFFFAA,str);
- SetPlayerVirtualWorld(playerid,100); // òì 100 áâìì ùáèç éù áîåã ëáø 1,2 .. àæ òùéúé òì 100
- inAct[playerid] = 1;
- }
- return 1;
- }
- public ACT_CountDown(Seconds)
- {
- new String[40];
- if(!Seconds)
- {
- SendClientMessageToAll(0x24FF0AB9, ".ôòéìåú éí éáùä äçìä áäöìçä ìëì äîùúúôéí");
- for(new j; j<MAX_PLAYERS; j++)
- {
- if(IsPlayerConnected(j) && inAct[j])
- {
- new rand = random(sizeof(SomePlaceSpawns));
- SetPlayerPos(j, SomePlaceSpawns[rand][0], SomePlaceSpawns[rand][1],SomePlaceSpawns[rand][2]);
- SetTimerEx("AB",2000,false,"i",j); // èééîø ùì 2 ùðéåú
- }
- }
- }
- else
- {
- format(String, sizeof String, "~r~/~g~BJoin: ~w~%d", Seconds);
- GameTextForAll(String, 1500, 5);
- SetTimerEx("ACT_CountDown", 1000, 0, "d", Seconds-1);
- }
- return 1;
- }
- public AB(i)
- {
- SendClientMessageToAll(i,0xFF9900AA,"Bot Activity: éí");
- SetTimerEx("ABC",5000,false,"i",i); // èééîø ùì 2 ùðéåú // for(new i = 0; i<MAX_PLAYERS; i++)
- return 1;
- }
- public ABC(i)
- {
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i,10.0,185.6102,-1879.4990,2.0981))
- {
- SendClientMessage(i,0xFFFFFFFF,"!äáåè àîø ìëì äîùúúôéí ìäéåú áéí åàúä äééúä áéáùä ~ ðôñìú");
- SetPlayerHealth(i,0.0);
- inAct[i] = 0;
- M[i] = 0;
- }
- }
- SendClientMessageToAll(i,0xFF9900AA,"Bot Activity: éáùä");
- SetTimerEx("AQ",4000,false,"i",i);
- return 1;
- }
- public AQ(i)
- {
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i,10.0,193.2984,-1899.7781,-0.2631))
- {
- SendClientMessage(i,0xFFFFFFFF,"!äáåè àîø ìëì äîùúúôéí ìäéåú áéáùä åàúä äééúä áéí ~ ðôñìú");
- SetPlayerHealth(i,0.0);
- inAct[i] = 0;
- M[i] = 0;
- }
- }
- SendClientMessageToAll(i,0xFF9900AA,"Bot Activity: éáùä");
- SetTimerEx("AQA",4000,false,"i",i);
- return 1;
- }
- public AQA(i)
- {
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerInRangeOfPoint(i,10.0,193.2984,-1899.7781,-0.2631))
- {
- SendClientMessage(i,0xFFFFFFFF,"!äáåè àîø ìëì äîùúúôéí ìäéåú áéáùä åàúä äééúä áéí ~ ðôñìú");
- SetPlayerHealth(i,0.0);
- inAct[i] = 0;
- M[i] = 0;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement