Few questions about scripting PAWN
#6

Try to make simple modes with a few functions. For example:

pawn Код:
#include <a_samp>

main(){print("My First GM Loaded!");}

public OnGameModeInit()
{
   AddPlayerClassEx(0, 105, 2488.562, -1666.865, 12.8757, 262.0, 24, 150, 29, 300, 4, 1);
   AddPlayerClassEx(1, 102, 2488.562, -1666.865, 12.8757, 262.0, 25, 150, 28, 500, 22, 150);
   return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetCameraBehindPlayer(playerid);
    switch(classid)
    {
        case 0: GameTextForPlayer(playerid, "~g~~h~~h~Grove Street Families", 3000, 4);
        case 1: GameTextForPlayer(playerid, "~p~Ballas", 3000, 4);
    }
    return 1;
}
Reply


Messages In This Thread
Few questions about scripting PAWN - by FlawPaw - 28.08.2014, 07:59
Re: Few questions about scripting PAWN - by Infinity - 28.08.2014, 08:29
Re: Few questions about scripting PAWN - by FlawPaw - 28.08.2014, 08:33
Re: Few questions about scripting PAWN - by iFarbod - 28.08.2014, 10:03
Re: Few questions about scripting PAWN - by FlawPaw - 28.08.2014, 10:55
Re: Few questions about scripting PAWN - by iFarbod - 28.08.2014, 11:37
Re: Few questions about scripting PAWN - by FlawPaw - 28.08.2014, 11:51
Re: Few questions about scripting PAWN - by iFarbod - 28.08.2014, 12:09
Re: Few questions about scripting PAWN - by FlawPaw - 28.08.2014, 12:32
Re: Few questions about scripting PAWN - by iFarbod - 28.08.2014, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)