[Ajuda] /Roubar bugado
#1

Bom gente, eu fiz esse /roubar, mas vocк comeзa a roubar, e cai em outra pessoa fala que estб roubando!
Nгo sei se vгo entender, mas aqui um print:
http://i.imgur.com/7zWCBjW.png
/roubar
PHP код:
else if(PlayerToPoint(2.0,playerid,159.7047,-80.1586,1001.8047)) // Zip
            
{
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre da Zip! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 60 segundos para terminar de roubar a Zip.");
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Zip");
            
SetTimer("RoubandoZip"60000false);
            
roubando[playerid] = 1;
            
SetTimer("Roubei"180000false);
            return 
1;
            } 
Public do roubar:
PHP код:
forward RoubandoZip(playerid);
public 
RoubandoZip(playerid)
{
if(!
IsPlayerInRangeOfPoint(playerid5.0160.1404,-80.5766,1001.8047))
{
SendClientMessage(playeridGetPlayerColor(playerid), "Vocк se afastou do cofre! Tentativa de roubo fracassada!");
new 
playername[MAX_PLAYER_NAME];
new 
string[128];
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s e os %s nгo conseguiram roubar o cofre da Zip!"playernameNomeORG(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), string);
roubando[playerid] = 0;
return 
1;
}
new 
cash random(25000);
new 
msgzip[80];
format(msgzipsizeof(msgzip), "Vocк conseguiu roubar a Zip, e ganhou %d !!",cash);
SendClientMessage(playerid0xFFFAFAFFmsgzip);
new 
playername[MAX_PLAYER_NAME];
new 
string[128];
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
format(stringsizeof(string), "%s e os %s conseguiram roubar o cofre da Zip!"playernameNomeORG(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), string);
GivePlayerMoney(playeridcash);
return 
1;

Nгo sei oque fiz errado, mas tб um bug feio!
Reply


Messages In This Thread
/Roubar bugado - by IGp - 14.01.2014, 12:48
Re: /Roubar bugado - by Gii - 14.01.2014, 13:27
Re: /Roubar bugado - by FrostyWolf - 14.01.2014, 13:39
Respuesta: /Roubar bugado - by ViniKuliveguisky - 14.01.2014, 13:53
Re: /Roubar bugado - by IGp - 14.01.2014, 13:56
Respuesta: /Roubar bugado - by ViniKuliveguisky - 14.01.2014, 14:04
Re: /Roubar bugado - by Gii - 14.01.2014, 14:06
Re: /Roubar bugado - by IGp - 14.01.2014, 14:28
Re: /Roubar bugado - by Gii - 14.01.2014, 14:40
Re: /Roubar bugado - by IGp - 14.01.2014, 14:42

Forum Jump:


Users browsing this thread: 2 Guest(s)