[AJUDA] Dahora '=' - 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] Dahora '=' (
/showthread.php?tid=338511)
[AJUDA] Dahora '=' -
goku114 - 30.04.2012
queria mudar interior dessa 24/7 pra por da hq tugas
pawn Код:
//24/7 lado hq pcc
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerInterior(playerid, 16);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-25.1326,-139.0670,1003.5469);
PlayerInfo[playerid][pInt] = 16;
pawn Код:
//24/7 lado hq pcc saida
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1928.6006,-1776.4480,13.5469);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
[/pawn]
Bom eu nao editei a saida pq e saida neh mas eu ja editei o primeiro la
pawn Код:
//24/7 lado hq pcc
exemplo
GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
SetPlayerInterior(playerid, 8);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,-25.1326,-139.0670,1003.5469);
PlayerInfo[playerid][pInt] = 16;
Re: [AJUDA] Dahora '=' -
KinX - 30.04.2012
Se vocк for mudar o interior, pressupoe-se que vocк tambйm deve mudar a posiзгo, entгo й soh trocar o
SetPlayerPos
SetPlayerInterior
GameTextForPlayer - Coloque a mensagem do local que o player entrara, apenas se for preciso
e muda o PlayerInfo
e talvez o
SetPlayerVirtualWorld
exemplo
pawn Код:
GameTextForPlayer(playerid, "~w~Thugas", 5000, 1); // ira aparecer quando o player entra na hq
SetPlayerInterior(playerid, 8); // muda o id do interior
SetPlayerVirtualWorld(playerid, 0); // se quiser, mude o virtual world do player
SetPlayerPos(playerid,X, Y, Z); // Muda para as coordenadas proxima б porta da HQ (no caso,no interior)
PlayerInfo[playerid][pInt] = 16; // Muda aki o Info Do player