trailer help..
#1

Код:
forward priekaba();
Код:
public priekaba()
{
  for(new k = 0; k < MAX_PLAYERS; k++)
	{
		if(IsPlayerInVehicle(k, 514))
		{
		AttachTrailerToVehicle(584,514);
		picaDB[k][Picanumber] = SetPlayerCheckpoint(k,picaarray[picaDB[k][Picanumber]][0],picaarray[picaDB[k][Picanumber]][1],picaarray[picaDB[k][Picanumber]][2],6.0);
		}
		else
		{
		DisablePlayerCheckpoint(k) ;
		}
	}
	return 1;
}
Код:
SetTimer("priekaba",1000,false);
I'm trying to do trucker job, but when I enter in truck server does nothing.. No checkpoint's.. Can you tell me what's wrong?
Reply
#2

Maybe try OnPlayerStateChange to check if player's state is driver and if player is in right vehicle and then attach the trailer..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)