26.12.2013, 23:27
(
Последний раз редактировалось OnY; 27.12.2013 в 16:55.
)
EDITE,T/C PLEASE
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (((newkeys & KEY_LEFT) && !(oldkeys KEY_LEFT)) && IsPlayerInDealership(playerid))
{
//Make previous model appear
}
else if (((newkeys & KEY_RIGHT) && !(oldkeys KEY_RIGHT)) && IsPlayerInDealership(playerid))
{
//Make next vehicle model appear
}
return 1;
}
//or-------------------------------------------------
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInDealership(playerid))
if (((newkeys & KEY_LEFT) && !(oldkeys KEY_LEFT)))
{
//Make previous model appear
}
else if (((newkeys & KEY_RIGHT) && !(oldkeys KEY_RIGHT)))
{
//Make next vehicle model appear
}
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(IsPlayerInDealership(playerid)) if (((newkeys & KEY_LEFT) && !(oldkeys KEY_LEFT))) { //Make previous model appear } else if (((newkeys & KEY_RIGHT) && !(oldkeys KEY_RIGHT))) { //Make next vehicle model appear } } return 1; }