[HELP]Teamjack problem
#1

I've got this on the bottom of my script
Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == gTeam[playerid] && GetPlayerState(i) == PLAYER_STATE_DRIVER && IsPlayerInVehicle(i, vehicleid))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
break;
}
}
}
}
return 1;
}

But when a teammember presses the enter vehicle button, he doesn't do anything, but on the players side who he wants to jack, he jacks the car... How can i fix this?
Reply
#2

A'none?
Reply
#3

Bumpie bump
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)