17.09.2009, 13:10
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new estado = GetPlayerState(playerid);
if (IsPlayerInAnyVehicle(playerid) && estado == PLAYER_STATE_DRIVER)
{
if (newkeys == KEY_FIRE && KEY_LOOK_RIGHT || newkeys == KEY_FIRE && KEY_LOOK_LEFT || newkeys == KEY_ACTION && KEY_LOOK_LEFT || newkeys == KEY_ACTION && KEY_LOOK_RIGHT)
{
new Float:x,Float:y, Float:z;
GetPlayerPos(playerid,Float:x,Float:y, Float:z);
SetPlayerPos(playerid,Float:x+10,Float:y+1, Float:z);
SendClientMessage(playerid,0xcc3300ff,"DANGER: Remove From vehicule for Drive-By");
}
}
}