SetPlayerAttachedObject(playerid,9,1550,1,0.101000,-0.227000,-0.125999,89.899948,88.899993,91.799995,1.000000,1.000000,1.000000);
SetPlayerWantedLevel(playerid, 6);
dcmd_robbank(playerid, params[])
{
#pragma unused params
if(IPP(playerid,30,2310.8872, -13.2512, 26.7422))
{
if(Robbing[playerid] == 0)
{
if(Robbed[playerid] == 0)
{
new name[MAX_PLAYER_NAME], str[256];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"Jucatorul %s a jefuit banca, omoara-l sa primesti banii.",name);
SendClientMessageToAll(YELLOW, str);
SCM(playerid,-1,"Ai jefuit banca , acuma dute prin checkpoint.");
SCP(playerid,1501.4478,-1038.2163,23.1958,3.0);
Robbing[playerid] = 1;
RobCP1[playerid] = 1; RobCP2[playerid] = 0; RobCP3[playerid] = 0; RobCP4[playerid] = 0; RobCP5[playerid] = 0;
RobCP6[playerid] = 0; RobCP7[playerid] = 0; RobCP8[playerid] = 0; RobCP9[playerid] = 0; RobCP10[playerid] = 0;
new randommoney = 50000 + random(50000);
rInfo[playerid][robMoney] = randommoney;
Robbed[playerid] = 1;
SetTimer("ReloadRobbing",3600 * 1000,false);
}
else
{
SCM(playerid,-1,"Banca a fost jefuita ! Asteapta 1 ora .");
}
}
else
{
SCM(playerid,-1,"Ai jefuit deja banca , dute prin checkpoint");
}
}
return 1;
}
if(RobCP1[playerid] == 1)
{
DCP(playerid);
SCP(playerid,1563.9694,-1087.7434,23.0732,3.0);
RobCP1[playerid] = 0;
RobCP2[playerid] = 1;
}
#define SCP SetPlayerCheckpoint
#define DCP DisablePlayerCheckpoint
public ReloadRobbing(playerid)
{
Robbed[playerid] = 0;
return 1;
}
SetTimerEx("ReloadRobbing",3600 * 1000,false,"i",playerid);
SetTimerEx("ReloadRobbing",3600 * 1000,false,"i",playerid); |