Create a vehicle when player joins
#1

So basically I tried to make this:
When a player joins, the script creates a vehicle for him at one of these locations:

X1,X1,X1
X2,X2,X2
or
X3,X3,X3

And he joins automatically at that location in that vehicle.
Ive tried it like this, I put this onder OnGameModeInit:

PHP код:
AddStaticVehicleEx(411,3781.69995117,-1922.30004883,23.79999924,189.99755859,43,1,15); 
And I have this:


PHP код:
public OnPlayerSpawn(playerid)
{
PutPlayerInVehicle(playerid10);
return 
1;

But yet I don't know how I can make it work ;/
Reply


Messages In This Thread
Create a vehicle when player joins - by ValentinLaw - 18.08.2012, 15:11
Re: Create a vehicle when player joins - by RanSEE - 18.08.2012, 15:30
Re: Create a vehicle when player joins - by ValentinLaw - 18.08.2012, 15:45
Re: Create a vehicle when player joins - by ValentinLaw - 18.08.2012, 15:49
Re: Create a vehicle when player joins - by RanSEE - 18.08.2012, 16:05

Forum Jump:


Users browsing this thread: 3 Guest(s)