10.08.2009, 15:57
I've got this on the bottom of my script
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?
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; } |