29.11.2011, 16:43
Quote:
Try kostas' script without the return 1's in the cases:
Код:
if(strcmp(cmdtext, "/rocket", true) == 0) { switch(random(3)) { case 0: { InCar[playerid] = false; SetPlayerPos(playerid,2618.1104,2721.5310,36.5386); SetPlayerFacingAngle(playerid, 182.8171); SetCameraBehindPlayer(playerid); } case 1: { InCar[playerid] = false; SetPlayerPos(playerid,2608.7087,2769.7107,23.8222); SetPlayerFacingAngle(playerid,179.0337); SetCameraBehindPlayer(playerid); } case 2: { InCar[playerid] = false; SetPlayerPos(playerid, 2652.5449,2699.1731,19.3222); SetPlayerFacingAngle(playerid, 12.9889); SetCameraBehindPlayer(playerid); } } return 1; } |