29.11.2011, 14:59
Hi
I made a random spawn that does'nt work
Here is the code:
I made a random spawn that does'nt work
Here is the code:
Код:
if(strcmp(cmdtext, "/rocket", true) == 0)
{
if (RandomSpawn == 0)
{
InCar[playerid] = false;
SetPlayerPos(playerid,2618.1104,2721.5310,36.5386);
SetPlayerFacingAngle(playerid, 182.8171);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 1)
{
InCar[playerid] = false;
SetPlayerPos(playerid,2608.7087,2769.7107,23.8222);
SetPlayerFacingAngle(playerid,179.0337);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 2)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2652.5449,2699.1731,19.3222);
SetPlayerFacingAngle(playerid, 12.9889);
SetCameraBehindPlayer(playerid);
}

