public RouboVictim(playerid)
{
KillTimer(tempovictim);
if(!PlayerToPoint(8.0,playerid,205.4029,-11.5629,1005.2109))
{
SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto à Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
format(gstring, sizeof(gstring), "%s e os %s não conseguiram roubar a Victim ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
GameTextForPlayer(playerid,"~r~Deu mole playboy...", 2500, 3);
Controle(playerid, 1);
ClearAnimations(playerid);
SendClientMessage(playerid, COLOR_GREY, "Você não está na Victim");
ProvocoVictim[playerid] = 0; roubando[playerid] = 0; roubovictim = 0; KillTimer(tempovictim); temporoubovictim = 0;
return true;
}
ForPlayers(i)
{
if(PlayerToPoint(8.0,i,205.4029,-11.5629,1005.2109))
{
new var032=0;
if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
if(ProvocoVictim[playerid] == 1)
{
SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto à Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar a Victim ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
GameTextForPlayer(playerid,"~g~Vai~w~ !~n~~g~Vai~w~ !~n~~g~Vai~w~ !", 2500, 3);
Controle(playerid, 1);
ClearAnimations(playerid);
roubando[playerid] = 0; roubovictim = 0; ProvocoVictim[playerid] = 0;
}
new grana = 1000 + random(6000);
if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
{
SetPlayerCriminal(i,255, "Assalto a Loja de Roupas");
GivePlayerMoney(i, grana);
format(gstring, sizeof(gstring), "Você e os %s roubaram R$%d da Victim !",NomeORG(playerid), grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
return true;
}
Controle(playerid, 1);
if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032) { SetPlayerCriminal(i,255, "Assalto a Loja de Roupas"); GivePlayerMoney(i, grana); Controle(playerid,1);// Vocк esqueceu disto, Troque o IF por este... format(gstring, sizeof(gstring), "Vocк e os %s roubaram R$%d da Victim !",NomeORG(playerid), grana); SendClientMessage(i, COLOR_YELLOW, gstring); }
Controle(playerid, 0);
nгo seria
pawn Код:
presumo q 0 seja falso e 1 verdadeiro.. |
public RouboVictim(playerid)
{
KillTimer(tempovictim);
if(!PlayerToPoint(8.0,playerid,205.4029,-11.5629,1005.2109))
{
SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({1E1211}Assalto а Victim{1A8589})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar a Victim ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
GameTextForPlayer(playerid,"~r~Deu mole playboy...", 2500, 3);
Controle(playerid, 1);
ClearAnimations(playerid);
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Victim");
ProvocoVictim[playerid] = 0; roubando[playerid] = 0; roubovictim = 0; KillTimer(tempovictim); temporoubovictim = 0;
return true;
}
ForPlayers(i)
{
if(PlayerToPoint(8.0,i,205.4029,-11.5629,1005.2109))
{
new var032=0;
if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
if(ProvocoVictim[playerid] == 1)
{
SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({1E1211}Assalto а Victim{1A8589})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar a Victim ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
GameTextForPlayer(playerid,"~g~Vai~w~ !~n~~g~Vai~w~ !~n~~g~Vai~w~ !", 2500, 3);
Controle(playerid, 1);
ClearAnimations(playerid);
roubando[playerid] = 0; roubovictim = 0; ProvocoVictim[playerid] = 0;
}
new grana = 1000 + random(6000);
if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
{
SetPlayerCriminal(i,255, "Assalto a Loja de Roupas");
GivePlayerMoney(i, grana);
Controle(playerid, 0);
format(gstring, sizeof(gstring), "Vocк e os %s roubaram R$%d da Victim !",NomeORG(playerid), grana);
SendClientMessage(i, COLOR_YELLOW, gstring);
}
}
}
return true;
}