02.12.2011, 22:50
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_WALK))
{
new Float:X,Float:Y,Float:Z, Float:Angle;
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, Angle);
new veiculonovo = CreateVehicle(carrocriado, X,Y,Z, Angle, 0, 0, 60000);
PutPlayerInVehicle(playerid, veiculonovo, 0);
}
return 1;
}