15.08.2010, 21:45
esse й meu sistema de roubo a banco e gostaria de sabe aonde eu mudo o tempo pra poder roubar denovo e quantia em dinheiro como ficaria?
pawn Код:
if(strcmp(cmd, "/roubar", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new rand = random(500000);
if(IsPlayerConnected(playerid))
{
if(!PlayerToPoint(5.0, playerid, 206.3264,-98.3111,1005.2578) && !PlayerToPoint(2.0, playerid, 2315.5859,0.3545,26.7422) && !PlayerToPoint(2.0, playerid, 358.9777,163.2005,1008.3828))
{
SendClientMessage(playerid, COLOR_RED, "Vocк so pode assaltar banco a cada 30 Minutos !");
return 1;
}
if(AssaltouBanco == 0)
{
if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e os Los Aztecas Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_DBLUE, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e os Los Vagos Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_YELLOW, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e a Groove Street Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, TEAM_GROVE_COLOR, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e os Ballas Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_MSG, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e a Bloodz Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_LIGHTRED, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e os Surfistas Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_LIGHTRED, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e Sons Of Anachy Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_RED, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 20|| PlayerInfo[playerid][pLider] == 20)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e A Mafia Yakuza Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLORGZ_YAKUZA, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 22|| PlayerInfo[playerid][pLider] == 22)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e A Mafia Cosa Nostra Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, 0x00E7C6F6, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 24|| PlayerInfo[playerid][pLider] == 24)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e Os The Fast Furious Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, 0xA774E2F6, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 6|| PlayerInfo[playerid][pLider] == 6)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e a Taliban Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_ASFARC, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 16|| PlayerInfo[playerid][pLider] == 16)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e a Al'qaeda Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_ALQAEDA, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
if(PlayerInfo[playerid][pMembro] == 14|| PlayerInfo[playerid][pLider] == 14)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк Roubou o Banco de Los Santos !");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Todos os Cops Foram Avisados Fuja ou Serб Preso !");
format(string, 256, "O %s e Os Punks Roubaram o Cofre do Banco de Los Santos", sendername);
SendClientMessage(i, COLOR_RED, string);
SetPlayerCriminal(playerid,playerid,"Roubo a Banco");
if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
else { WantedPoints[giveplayerid]+= 2; }
if(rand >= 100000 && rand <= 500000) { GivePlayerMoneyEx(playerid, rand); }
AssaltouBanco = 1;
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Tente novamente em aproximadamente 30 Minutos.");
return 1;
}
}
return 1;