Script problems
#1

HELLO Community!

I have many idea of scripts but I don't know how make them.
Hope you can help me

a)I have a teamkill protection but It works only with people of the same class. Example: cops vs cops it works but cops vs swat it doesn't. I don't know how do that :S .

b)I'd like to see in the right of screen (where there is kills) when someone is coming or leaving. The icon is the id 200 and 201 in wepons id. https://sampwiki.blast.hk/wiki/Image:Weapon-200.gif

c)I don't understand how works the world boundaries. I know that it's SetPlayerWorldBounds (xmin,xmax,ymin,ymax).
But the problem is how to find the coordinates (xmin,xmax...) for LS only (example) ?

d)I did a menu called /shop here you can buy weapons... but the menu looks like the menu of transfender, me i want it looks like this one: /imageshack/i/samp007xh.png/ (With weapons).
And how to make menu appear if we enter marker?

e) How to make a simple /eject command in rustler/hydra (only)?

d)


Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(Skin == SkinID)
    {
        for(new i = 0; i < 50; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[i][Skin] == 1)
                {
                    GameTextForPlayer(i, "You cannot spawn as that class", 5000, 5);
                    return 0;
                }
            }
        }
    }
    return 1;
}
Something like this should help. But, you'll need to edit it to fit your stuff.
Thank you ScottCFR That can help me too! But like you say I've to adapt it for my gamemode so can you explain me what means the lines of the code that will be great!

Now just thank you for help! I know there is many things, but i think that can help many peoples not only me
Reply


Messages In This Thread
Script problems - by gereter - 25.08.2010, 02:20
Re: Script problems - by willsuckformoney - 25.08.2010, 02:37
Re: Script problems - by gereter - 25.08.2010, 03:03
Re: Script problems - by General Abe - 25.08.2010, 03:07
Re: Script problems - by gereter - 25.08.2010, 03:16
Re: Script problems - by willsuckformoney - 25.08.2010, 03:28
Re: Script problems - by gereter - 25.08.2010, 03:37
Re: Script problems - by willsuckformoney - 25.08.2010, 03:38
Re: Script problems - by gereter - 25.08.2010, 03:58
Re: Script problems - by willsuckformoney - 25.08.2010, 04:27

Forum Jump:


Users browsing this thread: 1 Guest(s)