Pickup problems
#1

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
Reply
#2

Up.

Please Help me
Reply
#3

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
Reply
#4

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.
Reply
#5

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
Reply
#6

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


Forum Jump:


Users browsing this thread: 2 Guest(s)