Getting started
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/playtennis", cmdtext, true, 10) == 0)
    {
                //Set the position of the tennis field              
                SetPlayerPos(playerid, positionhere);
                //Gives the player a bb bat
                GivePlayerWeapon(playerid, 5, 1);
               
        return 1;
    }
This is what you have to start with, set the tennis field, give the player a bat, and then you should make the ball movable, and when a players punch it in a special radius, then the ball should move in some directions.. Find out yourself, there are a lot of tutorials about that.

Rep me if i helped.

- cruteX
Reply


Messages In This Thread
Getting started - by androidas - 05.11.2011, 16:39
Re: Getting started - by davve95 - 05.11.2011, 16:47
Re: Getting started - by NessaHD - 05.11.2011, 16:58

Forum Jump:


Users browsing this thread: 2 Guest(s)