SpawnPlayer() bug when in vehicle
#1

Problem: When using native SpawnPlayer() function on player who is in vehicle, strange things happen. If player is on foot, he is spawned properly.

Probably OnPlayerSpawn() isn't called, but I can't explain why the character is holding bottle/cigar.

pawn Code:
COM(spawnplayer) //spawnplayer command
{
    MOD;
    new pid;
    if (sscanf(params, "u", pid)) return ERROR("Usage: /SpawnPlayer [player]");
    if (pid == INVALID_PLAYER_ID) return ERROR("Invalid player id");
    SpawnPlayer(pid);
    return 1;
}
Proof:
Reply


Messages In This Thread
SpawnPlayer() bug when in vehicle - by mick88 - 04.01.2011, 12:34
Re: SpawnPlayer() bug when in vehicle - by rbN. - 04.01.2011, 13:57
Re: SpawnPlayer() bug when in vehicle - by xxmitsu - 04.01.2011, 16:08
Re: SpawnPlayer() bug when in vehicle - by gereter - 07.01.2011, 16:50
Re: SpawnPlayer() bug when in vehicle - by kurta999 - 08.01.2011, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)