[Ajuda] HQ - 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] HQ (
/showthread.php?tid=579272)
HQ -
Matei123 - 25.06.2015
Galera Queria sabe Como Boto Hq de profissгo No Pawno Tipo Quando o Play Escolher A Profissгo Spawnar na HQ Do Emprego.
Eu Tenho O /save do lugar Mais queria saber como Botar no pawno.
Codico Do /Save
PHP код:
AddPlayerClass(0,1544.1503,-1631.7477,13.3828,23.0358,0,0,0,0,0,0); // policia militar
Aonde Eu Boto esse comando? e como ?
Re: HQ -
D3sconn3ct - 25.06.2015
Exemplo.
public OnPlayerSpawn(playerid)
PHP код:
if(pInfo[playerid][Profisao] == PoliciaMilitar)
{
SetPlayerPos(playerid, x, y, z);
}
* Use de acordo com o seu servidor.
Re: HQ -
LockedLucas - 25.06.2015
Estude sobre variбveis.....
Re: HQ -
iTakelot - 25.06.2015
Seria melhor voce usar na public OnPlayerRequestSpawn(playerid) para o cara nгo da spawn na HQ em um comando de teleporte por exemplo.
ex:
PHP код:
OnPlayerRequestSpawn(playerid)
{
if(Profissao[playerid] == Militar)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1544.1503,-1631.7477,13.3828 ); //Aqui o local que o do spawn do seu save
}
Re: HQ -
HaRdiiZin - 25.06.2015
Usando
SetPlayerPos, na public
OnPlayerSpawn e usando algumas variбveis vocк consegue
Re: HQ -
PeterJane - 25.06.2015
Depende de como scriptaste as profissхes. Mas podes utilizar o que o
iTakelot disse, AddPlayerClassEx, SetSpawnInfo, etc.
Re: HQ -
Matei123 - 25.06.2015
iTakelot
Ta Dando Esses Erros
Quote:
C:\Users\alexandre\Desktop\gm\[EXP] Brasil Expert [EXP]\gm be\gm be\gamemodes\EXPRPG.pwn(4247) : error 055: start of function body without function header
C:\Users\alexandre\Desktop\gm\[EXP] Brasil Expert [EXP]\gm be\gm be\gamemodes\EXPRPG.pwn(424 : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
|
@edit
Problema resolvido Conseguir um Codito aki
Mais Vlw ai por tentar ajudar
Re: HQ -
iTakelot - 25.06.2015
Quote:
Originally Posted by Matei123
iTakelot
Ta Dando Esses Erros
@edit
Problema resolvido Conseguir um Codito aki
Mais Vlw ai por tentar ajudar
|
Porque nгo tenta cria seu codigo?
estuda um pouco de variaveis e tenta, pegar codigos nгo vai te ajudar em nada ...
Re: HQ -
Matei123 - 25.06.2015
eu conseguir Fazer um aki com meu amigo