SA-MP Forums Archive
Pickup problems - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pickup problems (/showthread.php?tid=513410)



Pickup problems [+Rep for help] - saikumar - 16.05.2014

hi guys
i am using find the briefcase event system in my server.
everything seems fine
and i added weapons drop system in gamemode.

then suddenly everything changed
when player dies after picking up briefcase and other player comes and picups his dropped weapons then he is getting another briefcase cash with that droped weapon..

please help me to solve this.

moneybag : http://pastebin.com/aYXGvFQ5

gamemode pickup: http://pastebin.com/HTKCiAPs


Re: Pickup problems - saikumar - 16.05.2014

Up.

Please Help me


Re: Pickup problems - AroseKhanNiazi - 16.05.2014

i had the same problem so do what i say add the money bag in your game mode and then use else if clause for pickup only first pickup use if


Re: Pickup problems - jihadmeneer - 16.05.2014

Why are you returning those 0?

Код:
CMD:gotobriefcase( playerid, params[ ] )
{
        if(IsPlayerAdmin(playerid))
        {
        SetPlayerPos(playerid, MoneyBagPos[0], MoneyBagPos[1] +3, MoneyBagPos[2]);
        return SendClientMessage(playerid, -1, "You have been {FF0000}teleported {FFFFFF}to the {33FF66}briefcase");
        }
        else
        {
        return 0;
        }
}
CMD:startbriefcase( playerid, params[ ] )
{
    if(IsPlayerAdmin(playerid))
        {
        KillTimer(GoAgainTimer);
        return MoneyBag();
        }
        else
        {
        return 0;
        }
}
You can better send an authorization message.


Re: Pickup problems - saikumar - 16.05.2014

Quote:
Originally Posted by jihadmeneer
Посмотреть сообщение
Why are you returning those 0?

Код:
CMD:gotobriefcase( playerid, params[ ] )
{
        if(IsPlayerAdmin(playerid))
        {
        SetPlayerPos(playerid, MoneyBagPos[0], MoneyBagPos[1] +3, MoneyBagPos[2]);
        return SendClientMessage(playerid, -1, "You have been {FF0000}teleported {FFFFFF}to the {33FF66}briefcase");
        }
        else
        {
        return 0;
        }
}
CMD:startbriefcase( playerid, params[ ] )
{
    if(IsPlayerAdmin(playerid))
        {
        KillTimer(GoAgainTimer);
        return MoneyBag();
        }
        else
        {
        return 0;
        }
}
You can better send an authorization message.
i dont want players or admins should know that this commands exists


Re: Pickup problems - AroseKhanNiazi - 16.05.2014

so u should make the error message that only u can use this command