Quote:
Originally Posted by |_MeGaTroN_|
pawn Код:
#define Pressed(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (Pressed(KEY_WALK)) { new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); new VeiculoCreate = CreateVehicle(562, Pos[0], Pos[1], Pos[2], 0.0, -1, -1, 15); PutPlayerInVehicle(playerid, VeiculoCreate, 0); } return 1; }
|
Agora ficou funcional. Mais porque pressed se ele quer apenas que aperte e o carro apareзa? (: