12.10.2011, 20:23
Quote:
how to add unlimited nos to cars? also how to spawn cars ?
|
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_FIRE))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid)
{
AddVehicleComponent(vehicleid, 1010);
}
}
return 1;
}