Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
почему у меня в add_checkbox и add_static тексты написаны полностью заглавными буквами и большого размера. В то же время, как в других скриптах, использующих эти функции, размер текста меньше и присутствуют как заглавные, так и строчные буквы
Если на сервере отключен показ игроков(квадратиков) на радаре на большой дистанции(к примеру, на RP серверах), то функция SAMP.GetStreamedOutPlayerPos будет бесполезна
{$CLEO}
0000:
if
8AF7: get_samp_base_to 0@
then
0A93: end_custom_thread
end
repeat
wait 100
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "test" to_label @cmd
while true
wait 0
end
:cmd
0B35: samp 1@ = get_last_command_params
0C1A: 1@ = atoi 1@ // to int
if and
1@ >= 0
1@ < 1001
then
if SAMP.IsPlayerConnected(1@) // Player with id 1@ is connected.
then
2@ = SAMP.GetActorHandleByPlayerID(1@) // Get handle by player id
if Actor.Defined(2@) // Player in stream.
then
0AC8: 2@ 64 // Allocation of memory for the nickname
0AC8: 3@ 128 //
2@ = SAMP.GetPlayerNickname(1@) // Get nickname by player id
0AD3: 3@ = format "Player: %s" 2@ // Format
0B44: samp 4@ = create_3d_text 3@ color 0xFFFFFFFF position 0.0 0.0 1.0 { Over the player } view_distance 50.0 show_behind_walls true attached_to_player 1@ { Player ID } attached_to_vehicle -1
0AC9: 2@ // Free the memory
0AC9: 3@ // Free the memory
end
end
end
SAMP.CmdRet()
Write in chat: /test player_id
Attaching the 3d text for player in the non stream - i am not tested.
Sorry for my bad english :)