07.11.2018, 04:42
Mody logical way as I see it:
Define a one-dimensional constant array with the value of the skins, ranging from 0 to 2.
Generate an integer between 0 to 2 and select the index from the array to return the skin ID.
Define a one-dimensional constant array with the value of the skins, ranging from 0 to 2.
pawn Код:
const playerDeathSkins[] = { 230, 233, 299 };
pawn Код:
SetSpawnInfo(.., .., playerDeathSkins[Random(sizeof playerDeathSkins)], ..);