Quote:
Originally Posted by the_chaoz
aca tenes un codigo base.
pawn Код:
public OnPlayerSpawn(playerid) { new rspawn = random(4); switch(rspawn){ case 0: SetPlayerPos(playerid, 0.0, 0.0, 0.0); case 1: SetPlayerPos(playerid, 0.0, 0.0, 0.0); case 2: SetPlayerPos(playerid, 0.0, 0.0, 0.0); case 3: SetPlayerPos(playerid, 0.0, 0.0, 0.0); } return 1; }
solo debes cambiar las coordenadas de los SetPlayerSpawn. son 4 lugares diferentes. si quieres que sean 5, sera "random(5)", y tendras tambien un "case 4:" y asi sucesivamente.
cualquier duda preguntame
|
me salen estos errores
C:\Users\Roberto\samp\Destruccion total\gamemodes\lvdm.pwn(62
: error 002: only a single statement (or expression) can follow each "case"
C:\Users\Roberto\samp\Destruccion total\gamemodes\lvdm.pwn(62
: warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.