[Include] Dynamic race system (Can also be used for missions!)
#1

Hello!

I've decided to release my race system, so here you go I haven't been testing it for a long time though, so feel free to leave any suggestions
  • Requirements
You will need the following plugins/includes to use this script:
  • Usage
I have made it simple to use with any command processor by making functions that you can call in your commands like so:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[ ])
{
    if(!strcmp(cmdtext, "/mycommandhere"))
    {
        return LR_CMD_RACECARS(playerid);
    }
}
Or (Depending on your command processor)
pawn Код:
CMD:mycommandhere(playerid, params[])
{
    return LR_CMD_RACECARS(playerid);
}
  • Callbacks
I will put these into two different categories, one named base and one named optional. Base means they're required to be called in the script for the thing to work, optional means they can be used if you want them.
  • Base
  • LR_LoadRaces() - Has to be called OnGameModeInit
  • LR_OnPlayerEnterRaceCheckpoint(playerid)
  • LR_OnDialogResponse(playerid, dialogid, response, listitem)
  • Optional
  • IsVehicleAllowedInRace(model, raceid)
  • LR_CMD_ADDRACE(playerid, params[])
  • LR_CMD_ADDCHECKPOINT(playerid, params[])
  • LR_CMD_LOADRACEFORALL(playerid)
  • LR_CMD_LOADRACEFORPLAYER(playerid)
  • LR_CMD_JOINRACE(playerid)
  • LR_CMD_LEAVERACE(playerid)
  • LR_CMD_READY(playerid)
  • LR_CMD_READYALL()
  • LR_CMD_RACECARS(playerid)
  • Download
Include
SQL schema
Reply


Messages In This Thread
Dynamic race system (Can also be used for missions!) - by Lenny the Cup - 16.06.2011, 11:31
Re: Dynamic race system (Can also be used for missions!) - by Phanto90 - 16.06.2011, 11:36
Re: Dynamic race system (Can also be used for missions!) - by Lenny the Cup - 16.06.2011, 11:43
Re: Dynamic race system (Can also be used for missions!) - by Basicz - 16.06.2011, 12:34
Re: Dynamic race system (Can also be used for missions!) - by Lenny the Cup - 16.06.2011, 12:55
Re: Dynamic race system (Can also be used for missions!) - by Resort - 16.06.2011, 22:43
Re: Dynamic race system (Can also be used for missions!) - by Donya - 16.06.2011, 22:50
Re: Dynamic race system (Can also be used for missions!) - by Phanto90 - 16.06.2011, 23:17
Re: Dynamic race system (Can also be used for missions!) - by Basicz - 16.06.2011, 23:22
Re: Dynamic race system (Can also be used for missions!) - by Donya - 17.06.2011, 01:31
Re: Dynamic race system (Can also be used for missions!) - by Lorenc_ - 17.06.2011, 01:44
Re: Dynamic race system (Can also be used for missions!) - by Gforcez - 17.06.2011, 05:33
Re: Dynamic race system (Can also be used for missions!) - by Stigg - 17.06.2011, 08:43
Re: Dynamic race system (Can also be used for missions!) - by Lenny the Cup - 17.06.2011, 09:42
Re: Dynamic race system (Can also be used for missions!) - by Gemini - 17.06.2011, 09:48
Re: Dynamic race system (Can also be used for missions!) - by Gforcez - 17.06.2011, 09:54
Re: Dynamic race system (Can also be used for missions!) - by Gemini - 17.06.2011, 10:08
Re: Dynamic race system (Can also be used for missions!) - by Lenny the Cup - 17.06.2011, 13:46
Respuesta: Dynamic race system (Can also be used for missions!) - by misho1 - 26.07.2012, 08:23
Re: Dynamic race system (Can also be used for missions!) - by bye - 03.08.2012, 04:27

Forum Jump:


Users browsing this thread: 2 Guest(s)