SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 08/04/2017, 10:45 PM   #1
iName
Big Clucker
 
iName's Avatar
 
Join Date: Jan 2016
Location: Brazil
Posts: 170
Reputation: 1
Default Mapa some apos spawn

galera peguei esse codigo de uma gm:

PHP Code:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerInterior(playerid14);
    
SetPlayerPos(playerid, -1466.51582.01054.3);
    
SetPlayerCameraPos(playerid, -1471.01579.51055.6);
    
SetPlayerFacingAngle(playerid115.9805);
    
SetPlayerCameraLookAt(playerid, -1465.51582.55601054.8);
    
ApplyAnimation(playerid"RIOT""RIOT_shout"4.010000);
    return 
1;

mas o mapa fica transparente ---> http://i.imgur.com/iiXfACO.png

como resolvo?

obs: ja tem o plugin streamer
iName is offline   Reply With Quote
Old 08/04/2017, 10:50 PM   #2
renatog
Huge Clucker
 
Join Date: Mar 2016
Posts: 328
Reputation: 48
Default Re: Mapa some apos spawn

Olha essa parte:
Code:
SetPlayerInterior(playerid, 14);
Você está setando o interior do jogador pra 14, quando ele spawnar você precisa setar pra 0 novamente.
renatog is offline   Reply With Quote
Old 08/04/2017, 10:51 PM   #3
iName
Big Clucker
 
iName's Avatar
 
Join Date: Jan 2016
Location: Brazil
Posts: 170
Reputation: 1
Default Re: Mapa some apos spawn

Quote:
Originally Posted by renatog View Post
Olha essa parte:
Code:
SetPlayerInterior(playerid, 14);
Você está setando o interior do jogador pra 14, quando ele spawnar você precisa setar pra 0 novamente.
ah ok, vlw
iName is offline   Reply With Quote
Old 08/04/2017, 11:10 PM   #4
DarkBr
Huge Clucker
 
Join Date: Feb 2017
Location: ∫ f(x) dx
Posts: 362
Reputation: 12
Default Re: Mapa some apos spawn

adicione o código:

Code:
new Interior = GetPlayerInterior(playerid);//pegando o interior
SetPlayerInterior(playerid, Interior);//setando o interior
DarkBr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Dar spawn após selecionar organização social Português/Portuguese 8 26/08/2016 10:07 PM
[Ajuda] Colocar spawn do player apos o login Peixotodx Português/Portuguese 2 30/04/2016 01:12 PM
[ Ajuda ] Spawn Após Login WKhalifa Português/Portuguese 4 11/01/2015 08:32 PM
[AJUDA]Spawn após login Lucas OutLawz Português/Portuguese 3 03/11/2011 12:11 AM
[AJUDA] Colocar TextDraw Antes do Spawn e Após Spawn davidjnio Português/Portuguese 9 30/08/2011 06:53 PM


All times are GMT. The time now is 08:16 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.