16.06.2011, 11:31
(
Последний раз редактировалось Lenny the Cup; 16.06.2011 в 16:18.
)
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
Or (Depending on your command processor)
SQL schema
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
- Usage
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[ ])
{
if(!strcmp(cmdtext, "/mycommandhere"))
{
return LR_CMD_RACECARS(playerid);
}
}
pawn Код:
CMD:mycommandhere(playerid, params[])
{
return LR_CMD_RACECARS(playerid);
}
- Callbacks
- 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
SQL schema