[Ajuda] Spawn do jogador.
#5

PHP код:
new bool:Logado[MAX_PLAYERS];
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerCameraPos(playerid, -2595.5474,1381.4757,7.1205);
    
SetPlayerCameraLookAt(playerid, -2601.6477,1408.5997,7.2681);
    
SetPlayerFacingAngle(playerid193.6051);
    
darSpawn(playerid);
    return 
1;
}
stock darSpawn(playerid)
{
    if(!
Logado[playerid])
    {
        
Logado[playerid] = true;
        
SetSpawnInfo(playerid0Player[playerid][Skin], 1153.7780,-1758.9849,13.6673,355.0100,0,0,0,0,0,0); //sempre que logar irб dar spawn nessa posiзao.
        
SpawnPlayer(playerid);
        return 
1;
    }
    else
    {
        
//Posiзгo do Hospital, exemplo:
        
        //SetPlayerPos(playerid, 0.0, 0.0, 3.0);
        //SetPlayerInterior(playerid, 0); //Interior do hospital, se nгo for interior, mantйm o 0.
        //SendClientMessage(playerid,-1,"Vocк deu Spawn no Hospital!"); //Mensagem sу para vocк entender.
        
return 1;
    }

Reply


Messages In This Thread
Spawn do jogador. - by AllanSG - 17.03.2018, 14:25
Re: Spawn do jogador. - by Adiiti - 17.03.2018, 14:33
Re: Spawn do jogador. - by AllanSG - 17.03.2018, 14:49
Re: Spawn do jogador. - by Adiiti - 17.03.2018, 15:32
Re: Spawn do jogador. - by SpikeCompiler - 18.03.2018, 02:14

Forum Jump:


Users browsing this thread: 2 Guest(s)