02.12.2011, 22:48
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_WALK))
{
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
CreateVehicle(562, Pos[0], Pos[1], Pos[2], 0.0, -1, -1, 15);
}
return 1;
}