[DUV] Como excluir os players do mapa em um comando e quando ele morrer volta os player
#2

seilб, tenta:

pawn Код:
#include a_samp

public OnPlayerDeath(playerid, killerid, reason)
{
    for(new i; i < MAX_PLAYERS; ++i) SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(playerid) & 0xFFFFFF00));
    return 1;
}

public OnPlayerSpawn(playerid)
{
    for(new i; i < MAX_PLAYERS; ++i) SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid));
}
Код:
// Make player 42 see player 1 as a red marker
SetPlayerMarkerForPlayer( 42, 1, 0xFF0000FF );
 
// Make the players marker an invisible white (chat will be white but marker will be gone).
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
 
// Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
 
// Make the players marker fully opaque (solid) to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) | 0x000000FF ) );
-Antes de alguem dizer roubo de crйditos > https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
- Lembrando que nгo tenho conhecimento suficiente para definir se este cуdigo funciona, desculpa
Reply


Messages In This Thread
[DUV] Como excluir os players do mapa em um comando e quando ele morrer volta os player - by victorcls - 11.10.2011, 16:06
Re: [DUV] Como excluir os players do mapa em um comando e quando ele morrer volta os player - by [O.z]Caroline - 11.10.2011, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)