23.07.2010, 01:13
quando vai ao banco e digita o comando , com qualquer gangue diz: voce nao esta em uma gangue!.
if(strcmp(cmdtext, "/roubarbanco", true) == 0)
{
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
if (!PlayerToPoint(100, playerid, 2309.540283, -2.270713, 26.742187))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб а volta do banco!");
return 1;
}
if(robtime > 1)
{
format(string, sizeof(string), "Banco foi recentemente roubado por favor aguarde [%d]", robtime);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
if (robbed == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Alguйm jб estб a tentar roubar o Banco.");
return 1;
}
if(PlayerInfo[playerid][pFMember] == 255)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo estб em uma gangue!");
return 1;
}
if(PlayerInfo[playerid][pMembro] == 1)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo estб em uma gangue!");
return 1;
}
if(gTeam[playerid] == 2 || IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Policiais nгo podem roubar o banco й um Crime.");
return 1;
}
if (playerrobbing[playerid] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк jб estб a tentar roubar o banco, por favor aguarde.");
return 1;
}
if(PlayerInfo[suspect][pMembro] != PlayerInfo[playerid][pMembro])
{
SendClientMessage(playerid, COLOR_YELLOW, "You must robbank with another member");
return 1;
}
if (GetPlayerWeapon(playerid) <= 1)
{
SendClientMessage(playerid, COLOR_GREY, "You must equip your weapon");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(( %s is attempting to rob the bank ))", sendername);
SendClientMessage(playerid,COLOR_WHITE,"stay in this area for 2 minutes");
SendFamilyMessage(1,COLOR_RED, "The Los Santos Bank is attempting to get robbed.");
SendFamilyMessage(PlayerInfo[playerid][pMembro],COLOR_LIGHTBLUE, string);
robbed = 1;
SetTimerEx("RobDone",120000, false, "i", playerid);
playerrobbing[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк deve roubar com um outro membro.");
return 1;
}
}
if(strcmp(cmdtext, "/roubarbanco", true) == 0)
{
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
if (!PlayerToPoint(100, playerid, 2309.540283, -2.270713, 26.742187))
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб а volta do banco!");
return 1;
}
if(robtime > 1)
{
format(string, sizeof(string), "Banco foi recentemente roubado por favor aguarde [%d]", robtime);
SendClientMessage(playerid,COLOR_YELLOW,string);
return 1;
}
if (robbed == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Alguйm jб estб a tentar roubar o Banco.");
return 1;
}
if(PlayerInfo[playerid][pFMember] == 255)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo estб em uma gangue!");
return 1;
}
if(PlayerInfo[playerid][pMembro] == 1)
{
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo estб em uma gangue!");
return 1;
}
if(gTeam[playerid] == 2 || IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Policiais nгo podem roubar o banco й um Crime.");
return 1;
}
if (playerrobbing[playerid] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк jб estб a tentar roubar o banco, por favor aguarde.");
return 1;
}
if(PlayerInfo[suspect][pMembro] != PlayerInfo[playerid][pMembro])
{
SendClientMessage(playerid, COLOR_YELLOW, "You must robbank with another member");
return 1;
}
if (GetPlayerWeapon(playerid) <= 1)
{
SendClientMessage(playerid, COLOR_GREY, "You must equip your weapon");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "(( %s is attempting to rob the bank ))", sendername);
SendClientMessage(playerid,COLOR_WHITE,"stay in this area for 2 minutes");
SendFamilyMessage(1,COLOR_RED, "The Los Santos Bank is attempting to get robbed.");
SendFamilyMessage(PlayerInfo[playerid][pMembro],COLOR_LIGHTBLUE, string);
robbed = 1;
SetTimerEx("RobDone",120000, false, "i", playerid);
playerrobbing[playerid] = 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Vocк deve roubar com um outro membro.");
return 1;
}
}