09.08.2011, 21:26
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys == KEY_FIRE || newkeys == KEY_LOOK_LEFT || newkeys == KEY_LOOK_BEHIND)
{
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
SetPlayerPos(playerid,p[0],p[1],p[2]+2);
SendClientMessage(playerid, COLOR_RED, "Fuistes sacado del auto por suspecha de db");
}
}
return 1;
}