SRL Archive - General

Declare Players


BlueWorld

2009-08-17 14:09:50

I wanna take this funtion out, so i can run the script normally without it using mutli player though

TRiLeZ

2009-08-17 14:13:06


procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active := True;

end;

Would that be what you looking for?

Just remember to "DeclarePlayers;" at the start of your script.

BlueWorld

2009-08-17 16:00:11

take out O_o

Gu3st...

2009-08-17 16:14:13

Why would you like to take the function out? Just add one player to the function instead of many and it will run on that account only.

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := ''; //Add your player's username here
Players[0].Pass := ''; //your player's password
Players[0].Nick := ''; //3 characters from the middle of your username (Example: Username="I likecheese" then Nick="kech".
Players[0].Active := True;

end;