Race, Derby and Server name generator

Ksna

  • Jr. Member
  • Posts: 86

[VSS]Shawn

  • Full Member
  • Posts: 210
Re: Race and Derby
« Reply #31, on July 25th, 2015, 04:23 PM »
when i use this crepy code without /race


Code: [Select]
else if( cmd == "joinrace") {
 if ( !player.Spawned )MessagePlayer("Spawn to use this command" player);
 else if ( !race ) MessagePlayer("Race is not started do /race", player);
 else if ( stats[player.ID].raceplayer ) MessagePlayer("You already joined race.",player);
 else if ( racecount > 4 ) MessagePlayer("Too Late! Only 4 players can race at once", player);
 else if ( racestart ) MessagePlayer("Too Late!", player);
 else {
  racecount++;
   for( local i=0; i <= racecount; i++ )
  {
   local plr = FindPlayer( i );
   player.Vehicle = FindVehicle( i );
  }
  player.Frozen = true;
  stats[player.ID].raceplayer = true;
  Message(""+ player.Name +" has joined race.")
 }
 }

it say race not started do /joinrace
Shawn join race :\ wtf

Ksna

  • Jr. Member
  • Posts: 86
Re: Race and Derby
« Reply #32, on July 25th, 2015, 04:54 PM »
Yes, Player should start race by typing /race then do /joinrace

[VSS]Shawn

  • Full Member
  • Posts: 210
Re: Race and Derby
« Reply #33, on July 25th, 2015, 05:25 PM »
LoL Wth Do u think Some newbies will come and do /race they will do /joinrace btw i have fix it

Ksna

  • Jr. Member
  • Posts: 86

BrYaN_FuRy

  • Jr. Member
  • Posts: 65

KAKAN

  • Wiki Contributor
  • Posts: 3,343
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN

FinchDon

  • Sr. Member
  • Posts: 252
For any help and support Join #s-s at IRC for Help in Scripting
( For Newbies )

KAKAN

  • Wiki Contributor
  • Posts: 3,343
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN