[pawn]new success = random(2);
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
if(strcmp(cmd, \"/bankrob\", true) == 0)
{
if(GetPlayerVirtualWorld(playerid) == 0)
{
if(BankRobbedRecently == 1)
{
SendClientMessage(playerid, COLOR_GREY, \"* Már egyszer kirabolták a bankot !\");
return 1;
}
if(PlayerInfo[playerid][pRobTime] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, \"* Már kiraboltad egyszer bankot ! Várj egy kicsit !\");
return 1;
}
if(PlayerToPointStripped(3, playerid, 2309.6060,-4.0211,26.7422, cx,cy,cz))
{
if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
{
if(OnDuty[playerid]==0)
{
if(success == 1)
{
SendClientMessage(playerid, COLOR_ORANGE, \"* Rabolod a bankot! Maradj egy helyben 95 másodpercig !\");
RobbingTime[playerid] = 95;
RobBankTimer = SetTimerEx(\"RobBank\",1000,true,\"i\",playerid);
WantedPoints[playerid] = 5;
SetPlayerCriminal(playerid,255, \"LS Bank kirablása\");
PlayerInfo[playerid][pRobTime] = 900;
SetTimer(\"UnsetBankRob\",1500000,false);
ApplyAnimation(playerid, \"SHOP\", \"ROB_Shifty\", 4.0, 0, 0, 0, 0, 0);
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, \"* Rablás sikertelen !\");
WantedPoints[playerid] = 2;
SetPlayerCriminal(playerid,255, \"LS Bank Rablás kísérlete \");
PlayerInfo[playerid][pRobTime] = 500;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \"* Szolgálatban vagy !\");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \"* Nincs is fegyvered! -.-\");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \"* Nem vagy a Bankban !\");
return 1;
}
return 1;
}
}
if(GetPlayerVirtualWorld(playerid) == 2)
{
if(BankRobbedRecentlysf == 1)
{
SendClientMessage(playerid, COLOR_GREY, \"* Már egyszer kirabolták a bankot !\");
return 1;
}
if(PlayerInfo[playerid][pRobTimesf] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, \"* Már kiraboltad egyszer bankot ! Várj egy kicsit !\");
return 1;
}
if(PlayerToPointStripped(3, playerid, 2309.6060,-4.0211,26.7422, cx,cy,cz))
{
if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
{
if(OnDuty[playerid]==0)
{
if(success == 1)
{
SendClientMessage(playerid, COLOR_ORANGE, \"* Rabolod a bankot! Maradj egy helyben 95 másodpercig !\");
RobbingTimesf[playerid] = 95;
RobBankTimersf = SetTimerEx(\"RobBanksf\",1000,true,\"i\",playerid);
WantedPoints[playerid] = 5;
SetPlayerCriminal(playerid,255, \"SF Bank kirablása\");
PlayerInfo[playerid][pRobTimesf] = 900;
SetTimer(\"UnsetBankRobsf\",1500000,false);
ApplyAnimation(playerid, \"SHOP\", \"ROB_Shifty\", 4.0, 0, 0, 0, 0, 0);
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, \"* Rablás sikertelen !\");
WantedPoints[playerid] = 2;
SetPlayerCriminal(playerid,255, \"SF Bank Rablás kísérlete \");
PlayerInfo[playerid][pRobTimesf] = 500;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \"* Szolgálatban vagy !\");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \"* Nincs is fegyvered! -.-\");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, \"* Nem vagy a Bankban !\");
return 1;
}
return 1;
}
return 1;
}[/pawn]
van egy ilyen bankrob-om és az lenne a kérdésem h hogy tudom beírni h lefagyassza az embert rob közben ? vlaki leírná?
köszönöm elõre is
Norbee