[Ajuda] Roubo ao banco
#2

pawn Код:
forward RoubandoBanco(playerid);
public RoubandoBanco(playerid) {

    if ( !IsPlayerInRangeOfPoint(playerid, 1.0, 2306.5127,-6.1166,26.7422) ) {
   
        SendClientMessage(playerid, GetPlayerColor(playerid), "Vocк se afastou do banco! Tentativa de roubo fracassada!");
        roubando[playerid] = 0;
        return 1;
    }
   
    new cash = random(50000);
    new msgbanco[80];
    format(msgbanco, sizeof(msgbanco), "Vocк conseguiu roubar o Banco, e ganhou %d !!",cash);
    SendClientMessage(playerid, 0xFFFAFAFF, msgbanco);
    new playername[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s e os %s conseguiram roubar o cofre do Banco!", playername, NomeORG(playerid));
    SendClientMessageToAll(GetPlayerColor(playerid), string);
    GivePlayerMoney(playerid, cash);
    return 1;
}
Reply


Messages In This Thread
Roubo ao banco - by IGp - 05.01.2014, 15:56
Re: Roubo ao banco - by Gii - 05.01.2014, 16:08

Forum Jump:


Users browsing this thread: 2 Guest(s)