23.12.2010, 12:22
I think that this will solve your problem:
Put:
I hope that i have helped
Put:
pawn Код:
//In The End of you GameMode:
stock FreezePlayer(playerid)
{
TogglePlayerControllable(playerid, false);
TogglePlayerControllable(playerid, true);
TogglePlayerControllable(playerid, false);
return 1;
}
//And, in your OnPlayerEnterVehicle callback, put:
if(IsASalesVehicle(vehicleid))
{
format(string,sizeof(string),"You are entering to a %s (%d) Owner: Dealership",vehicle, vehicleid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
FreezePlayer(playerid); //Will Freeze the player
//PutPlayerInVehicle(playerid, 0);
}
I hope that i have helped