[Ajuda] Gang - Nascer no Hospital - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Gang - Nascer no Hospital (
/showthread.php?tid=506085)
Gang - Nascer no Hospital -
Noturnobk - 11.04.2014
Olб galera, tudo bem?
Entгo, venho aqui pedir a ajuda de vocкs, pois eu quero por um negocio no meu servidor, estou criando um servidor de gang's e eu quero colocar pra cada gang quando morrer, spawnar ele para um hospital diferente.
Ex: Gang 1 - Vai pro Hospital de LS
Gang 2 - Vai pro hospital de LV
e Gang 3 - Vai pro Hospital de SF.
Re: Gang - Nascer no Hospital -
Dark.Angel - 11.04.2014
tenta algo parecido com isso..
em:
pawn Код:
if(Jogador й da Gang 1) {
SetPlayerPos(playerid,0.0,0.0,3.0);
SendClientMessage(playerid,-1,"Vocк й da gang 1, por isso spawno no hospital 1");
}
else if.............
https://sampwiki.blast.hk/wiki/SetPlayerPos
Re: Gang - Nascer no Hospital -
PT - 11.04.2014
uma base
Quote:
Originally Posted by Willian_Luigi
pawn Код:
new bool:gPm [ MAX_PLAYERS ] ; public OnPlayerDeath(playerid, killerid, reason) { gPm [ playerid ] = 1; }
public OnPlayerSpawn(playerid) { if (gPm [ playerid ]) { SetPlayerPos(playerid, x, y, z); //x, y, z = posiзгo do hospital gPm [ playerid ] = 0; } }
|