20.11.2010, 15:05
(
Последний раз редактировалось Biesmen; 20.11.2010 в 20:18.
)
Thanks, Lenny.
----
At the moment I have an other question, because I don't really have an idea how to make this properly.
I want the car to be spawned if the owner logs in. Except if the owner is "ForSale".
At the login function I added this command, but yeah, as soon as one player logs in, all cars will be spawned.
Tried to add at OnGameModeInit a check if the carowner logs in by using this:
(Just to give you an expression of what I mean)
I have to create different, forgot how it's called; 'CreateVehicles' for the exception, right?
But how do I do that.
I hope you can answer these two questions
Thank you.
Edit:
I'm using this to spawn the vehicles:
----
At the moment I have an other question, because I don't really have an idea how to make this properly.
I want the car to be spawned if the owner logs in. Except if the owner is "ForSale".
At the login function I added this command, but yeah, as soon as one player logs in, all cars will be spawned.
Tried to add at OnGameModeInit a check if the carowner logs in by using this:
pawn Код:
if(IsPlayerConnected(!strcmp(PlayerName, COwnerData[i][CarOwner], false))
I have to create different, forgot how it's called; 'CreateVehicles' for the exception, right?
But how do I do that.
I hope you can answer these two questions
Thank you.
Edit:
I'm using this to spawn the vehicles:
pawn Код:
for(new i; i < sizeof(COwnerData); i++)
{
COwnerData[i][CarID] = CreateVehicle(blablalba);
}