Random Request Class Locations?
#3

Top Of GameMode
pawn Код:
new Float:Locations[4][10] =
{
    {PlayerPosX, PlayerPosY, PlayerPosZ, CamPosX, CamPosY, CamPosZ, LookPosX, LookPosY, LookPosZ, Angle},
    {PlayerPosX, PlayerPosY, PlayerPosZ, CamPosX, CamPosY, CamPosZ, LookPosX, LookPosY, LookPosZ, Angle},
    {PlayerPosX, PlayerPosY, PlayerPosZ, CamPosX, CamPosY, CamPosZ, LookPosX, LookPosY, LookPosZ, Angle},
    {PlayerPosX, PlayerPosY, PlayerPosZ, CamPosX, CamPosY, CamPosZ, LookPosX, LookPosY, LookPosZ, Angle},
    {PlayerPosX, PlayerPosY, PlayerPosZ, CamPosX, CamPosY, CamPosZ, LookPosX, LookPosY, LookPosZ, Angle}
};
[b]In OnPlayerRequestClass
pawn Код:
new rand = random(sizeof(Locations));
    SetPlayerPos(playerid, Locations[rand][0], Locations[rand][1], Locations[rand][2]);
    SetPlayerCameraPos(playerid, Locations[rand][3], Locations[rand][4], Locations[rand][5]);
    SetPlayerCameraLookAt(playerid, Locations[rand][6],Locations[rand][7], Locations[rand][8]);
    SetPlayerFacingAngle(playerid, Locations[rand][9]);
Reply


Messages In This Thread
Random Request Class Locations? - by FreshRio - 21.03.2012, 05:31
Re: Random Request Class Locations? - by MP2 - 21.03.2012, 05:35
Re: Random Request Class Locations? - by DarkScripter - 21.03.2012, 05:42
Re: Random Request Class Locations? - by FreshRio - 21.03.2012, 06:04
Re: Random Request Class Locations? - by FreshRio - 22.03.2012, 06:28
Re: Random Request Class Locations? - by cs_waller - 22.03.2012, 07:06
Re: Random Request Class Locations? - by FreshRio - 22.03.2012, 07:50

Forum Jump:


Users browsing this thread: 1 Guest(s)