Академический Документы
Профессиональный Документы
Культура Документы
#include <streamer>
#include <zcmd>
#define FILTERSCRIPT
new HackerJob[MAX_PLAYERS];
new HJLimitTimer;
forward HJTimeLimit(playerid);
public HJTimeLimit(playerid)
{
SpawnPlayer(playerid);
ShowPlayerDialog(playerid,-1,0,"","","","");
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
HackerJob[playerid] = 0;
SendClientMessage(playerid,0xFF0000AA,"* Working time you're done, and you
dont finish it.");
return 1;
}
forward HackerSetup(playerid);
public HackerSetup(playerid)
{
SetPlayerVirtualWorld(playerid, playerid+1);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid, 2164.7,1601.9,999.9);
SetPlayerFacingAngle(playerid, 263.0);
SetPlayerCameraPos(playerid, 2163.5,1601.9,1000.8);
SetPlayerCameraLookAt(playerid, 2172.7,1601.9,999.9);
ApplyAnimation(playerid,"INT_OFFICE","OFF_Sit_Type_Loop", 4.0, 1, 0, 0, 0, 0);
SetTimerEx("HackerOne", 3000, 0, "d", playerid);
}
forward HackerOne(playerid);
public HackerOne(playerid)
{
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
SetPlayerCameraLookAt(playerid, 2172.1,1601.7,999.9);
ShowPlayerDialog(playerid, 1998, DIALOG_STYLE_INPUT, "root@localhost:~",
"Login as: root\nSystem is ready to rip off an important center\nType began to
launch attacks", "Submit", "Cancel");
}
forward HackerTwo(playerid);
public HackerTwo(playerid)
{
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
GameTextForPlayer(playerid,"~p~succeed",1000,6);
ShowPlayerDialog(playerid, 1999, DIALOG_STYLE_INPUT, "root@localhost:~",
"Login as: root\nThe system continues to the next center\nType keygen to launch
attacks", "Submit", "Cancel");
}
forward HackerThree(playerid);
public HackerThree(playerid)
{
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
GameTextForPlayer(playerid,"~p~succeed",1000,6);
ShowPlayerDialog(playerid, 2000, DIALOG_STYLE_INPUT, "root@localhost:~",
"Login as: root\nThe system continues to the next center\nType cracked to launch
attacks", "Submit", "Cancel");
}
forward HackerFour(playerid);
public HackerFour(playerid)
{
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
GameTextForPlayer(playerid,"~p~succeed",1000,6);
ShowPlayerDialog(playerid, 2001, DIALOG_STYLE_INPUT, "root@localhost:~",
"Login as: root\nThe system continues to the next center\nType worm to launch
attacks", "Submit", "Cancel");
}
forward HackerFive(playerid);
public HackerFive(playerid)
{
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
GameTextForPlayer(playerid,"~p~succeed",1000,6);
ShowPlayerDialog(playerid, 2002, DIALOG_STYLE_INPUT, "root@localhost:~",
"Login as: root\nThe system continues to the next center\nType virus to launch
attacks", "Submit", "Cancel");
}
forward HackerSix(playerid);
public HackerSix(playerid)
{
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
GameTextForPlayer(playerid,"~p~succeed",1000,6);
ShowPlayerDialog(playerid, 2003, DIALOG_STYLE_INPUT, "root@localhost:~",
"Login as: root\nThe system continues to the next center\nType trojan to launch
attacks", "Submit", "Cancel");
}
forward HackerSeven(playerid);
public HackerSeven(playerid)
{
KillTimer(HJLimitTimer);
PlayerPlaySound( playerid, 1058, 0, 0, 0 );
SetPlayerVirtualWorld(playerid, playerid+1);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid, 2164.7,1601.9,999.9);
SetPlayerFacingAngle(playerid, 263.0);
SetPlayerCameraPos(playerid, 2163.5,1601.9,1000.8);
SetPlayerCameraLookAt(playerid, 2172.7,1601.9,999.9);
ApplyAnimation(playerid,"CASINO","Roulette_win", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(playerid,"~p~succeed",2000,6);
new hname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, hname, sizeof(hname));
format(string, sizeof(string), "%s have completed the job as a Hacker Job.",
hname );
SendClientMessageToAll(0x33FF33AA, string);
SendClientMessage(playerid,0x33FF33AA,"* You have completed the job and get
$110000");
GivePlayerMoney(playerid, 110000);
SetTimerEx("HackerSuccesed", 3000, 0, "d", playerid);
}
forward HackerSuccesed(playerid);
public HackerSuccesed(playerid)
{
SpawnPlayer(playerid);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid,true);
HackerJob[playerid] = 0;
SetPlayerInterior(playerid,0);
return 1;
}
public OnFilterScriptInit()
{
print("+code++++++@!^*%$#~++worm++++cracked++++");
print(" Hacker Job - Kucin666 ");
print("+++++++trojan+++*********++++hack+++++++\n");
CreatePickup(1239, 1, 1720.3076,-1740.8135,13.5469);
CreateDynamicMapIcon(1720.3076,-1740.8135,13.5469, 23, 0);
Create3DTextLabel("Hacker Job",0xEEEE88FF,1720.3076,-1740.8135,13.5469
+0.85,20.0,0,1);
Create3DTextLabel("Type /hacker",0xEEEE88FF,1720.3076,-1740.8135,13.5469
+0.75,20.0,0,1);
return 1;
}
public OnPlayerConnect(playerid)
{
HackerJob[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
KillTimer(HJLimitTimer);
HackerJob[playerid] = 0;
return 1;
}
CMD:jobhacker(playerid, params[])
{
if(HackerJob[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000AA, "You're not allowed to use this
command while working.");
return 1;
}
SetPlayerPos(playerid,1719.8445,-1733.5785,13.3828);
SetPlayerInterior(playerid,0);
return 1;
}
CMD:hacker(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2, 1720.3076,-1740.8135,13.5469))
{
if(HackerJob[playerid] > 0)
{
SendClientMessage(playerid,0xFF0000AA,"You have started a Hacker
Job and can't use this command.");
return 1;
}
HackerJob[playerid] = 1;
new hname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, hname, sizeof(hname));
format(string, sizeof(string), "%s was working as a Hacker. Type /jobhacker
for go to Hacker Job.", hname );
SendClientMessageToAll(0xFFFF00AA, string);
HJLimitTimer = SetTimerEx("HJTimeLimit", 300000, 0, "d", playerid);
HackerSetup(playerid);
return 1;
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "You must be at work Hacker to
use this command.");
}
return 1;
}