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