Question & Help
#1

How do I make a callback to: when you enter the server to give you the spec on ​​the car with id 245 and after 10 seconds to remove your spawn speculative and give you a position?
Thanks. Help please
Reply
#2

I honstly dont know how some people answer questions that dont make sense. Can you clean up your words and crap?
Reply
#3

How do I connect to the server as a player spectator automatically give them the car with id 245 and after 10 seconds it out and give him spawn? ( sorry.. i use ****** translate )
Reply
#4

@Geon

You mean, that if player connect, then automatically he's a spectator, and he gets car with id 245, and after 10 secs player is spawning?

What's a sense of this?
Reply
#5

Spectate Who Specifically? Giving them the car is easy. the 10 seconds your gonna need to use the timer ofcourse.
Reply
#6

pawn Код:
public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerNPC(playerid) != 1)
        {
            if(PlayerInfo[playerid][pFirstLogin] == 0)
            {
I have a variable that is so: first login FirstLogin playeru's I want to give spec on ​​the car with id 245 (led by an NPC) for 10 seconds and after receiving respawn
Reply
#7

Help me please..
Reply
#8

Bump...
Reply
#9

pawn Код:
PlayerSpectateVehicle(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL);
That's what you mean?
Reply
#10

pawn Код:
public SetPlayerSpawn(playerid)
{    
    if(IsPlayerConnected(playerid))    
    {        
        if(IsPlayerNPC(playerid) != 1)        
        {            
            if(PlayerInfo[playerid][pFirstLogin] == 0)            
            {
                 TogglePlayerSpectating(playerid, 1);                
                 PlayerSpectateVehicle(playerid, 245);
                 SetTimerEx("SpawnPlayer", 10000, 0, "d", playerid);
            }
        }
    }
}
pawn Код:
forward SpawnPlayer(playerid);
pawn Код:
public SpawnPlayer(playerid)
{
    TogglePlayerSpectating(playerid, 0);
    SpawnPlayer(playerid);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)