30.01.2012, 03:40
pawn Код:
new Float:SkinCityPos[300][3][4]={//[Skin][City][xyza]
{{1000.0000,-1000.0000,0020.0000,000.0000},{-1000.0000,-2000.0000,0030.0000,090.0000},{2000.0000,2000.0000,0010.0000,180.0000}},//skin 0=line 0 i know, skin 0 not existing. you will need the same trick as for vehicles (+400 becomes +1 here)
{{1000.0000,-1000.0000,0020.0000,000.0000},{-1000.0000,-2000.0000,0030.0000,090.0000},{2000.0000,2000.0000,0010.0000,180.0000}},//skin 1 for santos, fierro, venturas
{{1000.0000,-1000.0000,0020.0000,000.0000},{-1000.0000,-2000.0000,0030.0000,090.0000},{2000.0000,2000.0000,0010.0000,180.0000}},//skin 2...
}
City=0-2; the second dimension {holding 3x coords{x,y,z} in it. oops, forgot to mention the angle ,a}
Float: x,y,z,a are stored in the array, so this
pawn Код:
{{santos},{fierro},{venturas}}
{{x,y,z,a},{x,y,z,a},{x,y,z,a}}
pawn Код:
SetPlayerPos(playerid,SkinCityPos[Skin][City][0],SkinCityPos[Skin][City][1],SkinCityPos[Skin][City][2]);
SetPlayerFacingAngle(playerid,SkinCityPos[Skin][City][3]);