I don't know why ...
#1

I don't understand .... but when i'm adding that

pawn Код:
SetPlayerAttachedObject(playerid,9,1550,1,0.101000,-0.227000,-0.125999,89.899948,88.899993,91.799995,1.000000,1.000000,1.000000);
SetPlayerWantedLevel(playerid, 6);
On the command or when i get in checkpoint , it put the money bag and the wanted level for 1 second ! And some time it put it to player with id 0 !


Thank's in advance !
Reply
#2

Can you show the whole command/checkpoint?
Reply
#3

Command

pawn Код:
dcmd_robbank(playerid, params[])
    {
        #pragma unused params
        if(IPP(playerid,30,2310.8872, -13.2512, 26.7422))
        {
            if(Robbing[playerid] == 0)
            {
                if(Robbed[playerid] == 0)
                {
                    new name[MAX_PLAYER_NAME], str[256];
                    GetPlayerName(playerid,name,sizeof(name));
                    format(str,sizeof(str),"Jucatorul %s a jefuit banca, omoara-l sa primesti banii.",name);
                    SendClientMessageToAll(YELLOW, str);
                    SCM(playerid,-1,"Ai jefuit banca , acuma dute prin checkpoint.");
                    SCP(playerid,1501.4478,-1038.2163,23.1958,3.0);
                    Robbing[playerid] = 1;
                    RobCP1[playerid] = 1; RobCP2[playerid] = 0; RobCP3[playerid] = 0; RobCP4[playerid] = 0; RobCP5[playerid] = 0;
                    RobCP6[playerid] = 0; RobCP7[playerid] = 0; RobCP8[playerid] = 0; RobCP9[playerid] = 0; RobCP10[playerid] = 0;
                    new randommoney = 50000 + random(50000);
                    rInfo[playerid][robMoney] = randommoney;
                    Robbed[playerid] = 1;
                    SetTimer("ReloadRobbing",3600 * 1000,false);
                }
                else
                {
                    SCM(playerid,-1,"Banca a fost jefuita ! Asteapta 1 ora .");
                }
            }
            else
            {
                SCM(playerid,-1,"Ai jefuit deja banca , dute prin checkpoint");
            }
        }
        return 1;
    }
The checkpoint

pawn Код:
if(RobCP1[playerid] == 1)
 {
        DCP(playerid);
        SCP(playerid,1563.9694,-1087.7434,23.0732,3.0);
        RobCP1[playerid] = 0;
        RobCP2[playerid] = 1;
    }
Them are without bag and wanted
Reply
#4

What's this? DCP(playerid);
BTW that usually happens when you use Settimer instead of settimerex.
Reply
#5

Show ReloadRobbing
Reply
#6

pawn Код:
#define SCP SetPlayerCheckpoint
#define DCP DisablePlayerCheckpoint
pawn Код:
public ReloadRobbing(playerid)
{
    Robbed[playerid] = 0;
    return 1;
}
Reply
#7

For functions with parameters, use SetTimerEx
Reply
#8

Replace your timer with this
pawn Код:
SetTimerEx("ReloadRobbing",3600 * 1000,false,"i",playerid);
Reply
#9

And how that look in my command , i doesn't used settimerex ...
Reply
#10

Try:

Quote:

SetTimerEx("ReloadRobbing",3600 * 1000,false,"i",playerid);

Instead!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)