beginner race server

habi

  • Jr. Member
  • Posts: 71
Re: beginner race server
« Reply #15,  »Last edited
here you go https://drive.google.com/open?id=1DQMaJTqo0GXVjCdgJVr9Fcg-pUrgvIWD  (Complete Windows 32 / 64)

to make it all neat and simple, I have put all functions into a new file race.nut
Earlier you had to add some 100 lines. Now just add these lines
1. onScriptLoad()
Code: [Select]
dofile("scripts/race.nut");onRaceScriptLoad();

2. onPlayerPart( player, reason )
Code: [Select]
onRacePlayerPart( player, reason );

3. onPlayerDeath( player, reason )
Code: [Select]
onRacePlayerDeath( player, reason );

4. onPlayerKill( player, killer, reason, bodypart )
Code: [Select]
onRacePlayerKill( player, killer, reason, bodypart );

5. onPlayerTeamKill( player, killer, reason, bodypart )
Code: [Select]
onRacePlayerTeamKill( player, killer, reason, bodypart );

6. onCheckpointEntered()
Code: [Select]
function onCheckpointEntered( player, checkpoint )
{
onRaceCheckpointEntered( player, checkpoint );
}

7. onPlayerCommand,
Code: [Select]
function onPlayerCommand( player, cmd, text )
{
if (cmd =="cmds")
{
MessagePlayer("[#C0C0C0]!race !stoprace !list",player);
}else if( IsRaceCommand( cmd ) )   
{
onPlayerRaceCommand( player, cmd, text );
}
return;
}

only race.nut and sound files -->  https://drive.google.com/open?id=1ZzuhJX-lH2xZzkzJp0yfYCl7gqvBtcCT

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 972

habi

  • Jr. Member
  • Posts: 71
Re: beginner race server
« Reply #17,  »Last edited
thanks . i have seen it today only.