24.06.2011, 18:38
but I again dont understand, I know where to set it, but I dont know how to set spawn place
what is, first cordinates, what second, what third?
what is RandomSpawn[rand][0] ? what 1 what 2 what 3?
pawn Код:
new Float:RandomSpawn[][4] =
{
// add your own co-ords and facing angles here
{-2796.9854, 1224.8180, 20.5429, 192.0335},
{-2454.2170, 503.8759, 30.0790, 267.2932},
{-2669.7322, -6.0874, 6.1328, 89.8853}
};
pawn Код:
new rand = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
return 1;