[Ajuda] Morrer
#7

Quote:
Originally Posted by AuhMaru
Посмотреть сообщение
A callback OnPlayeDeath do seu gamemode estб apenas isto?

Poste sua callback OnPlayerSpawn.
sim, estou recem comeзando a criar orgs, paineis de ajuda e tals, ainda nгo pensei em quando o player morrer.

onplayerspawn:

PHP код:
public OnPlayerSpawn(playerid)
{
    if(
cLogin[playerid] == 1){
        new 
textob[64], jogador[MAX_PLAYER_NAME];
        
GetPlayerName(playerid,jogador,sizeof(jogador));
        
format(textobsizeof(textob), "{FFFFFF}%s entrou no servidor!",jogador);
        
SendClientMessageToAll(1textob);
        
SendClientMessage(playerid,-1"{FFFFFF}Seja Bem Vindo!!");
        
TogglePlayerSpectating(playerid0);
        
TextDrawShowForPlayer(playeridTextdraw1);
        
PlayerTextDrawShow(playeridTextdraws0);
        
SetTimerEx("attstatus"1000true"i"playerid );
        
        
SetPlayerColor(playeridPlayerLoginplayerid ][ cororg ]);
        
SetCameraBehindPlayer(playerid); //voltar a camera pro player
        
        
whileConnect[playerid] = 0//Pra tirar o botгo de spawn
        
OnPlayerRequestClass(playerid0); //Pra tirar o botгo de spawn
          
cLogin[playerid] = 0;
    }
//===============================NPC
    
if(IsPlayerNPC(playerid))
    {
        new 
npcname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnpcnamesizeof(npcname));
        if(!
strcmp(npcname"Motorista"true))
        {
            
PutPlayerInVehicle(playeridOnibus[0], 0);
        }
        if(!
strcmp(npcname"Motorista2"true))
        {
            
PutPlayerInVehicle(playeridOnibus[1], 0);
        }
        if(!
strcmp(npcname"Motorista3"true))
        {
            
PutPlayerInVehicle(playeridOnibus[2], 0);
        }
        if(!
strcmp(npcname"Motorista4"true))
        {
            
PutPlayerInVehicle(playeridOnibus[3], 0);
        }
        if(!
strcmp(npcname"Motorista5"true))
        {
            
PutPlayerInVehicle(playeridOnibus[4], 0);
        }
    }
//===============================FIM NPC
    
return 1;

Reply


Messages In This Thread
Morrer - by Scorpion659 - 21.04.2017, 03:56
Re: Morrer - by AuhMaru - 21.04.2017, 04:21
Re: Morrer - by Scorpion659 - 21.04.2017, 14:38
Re: Morrer - by AuhMaru - 21.04.2017, 14:50
Re: Morrer - by Scorpion659 - 21.04.2017, 15:33
Re: Morrer - by AuhMaru - 21.04.2017, 15:54
Re: Morrer - by Scorpion659 - 21.04.2017, 15:59
Re: Morrer - by IlanZ - 21.04.2017, 16:05
Re: Morrer - by Scorpion659 - 21.04.2017, 16:20
Re: Morrer - by IlanZ - 21.04.2017, 16:32

Forum Jump:


Users browsing this thread: 4 Guest(s)