Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: wychodzi
1. Jak gracz wychodzi nie usuwa się playerblips
Siema mam taki problem ?e jak kto? wychodzi z serwera nie usuwa si? blips

[lua]function onResourceStart ( resource )
for id, player in ipairs( getElementsByType ( "player" ) ) do
if ( players[player] ) then
createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] )
else
createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] )
end
end
end

function onPlayerSpawn ( spawnpoint )
if ( players[source] ) then
createBlipAttachedTo ( source, 0, 2, players[source][1], players[source][2], players[source][3] )
else
createBlipAttachedTo ( source, 0, 2, color[1], color[2], color[3] )
end
end

function onPlayerQuit ()
destroyBlipsAttachedTo ( source )
end

function onPlayerWasted ( totalammo, killer, killerweapon )
destroyBlipsAttachedTo ( source )
end

function setBlipsColor ( source, commandName, r, g, b )
if ( tonumber ( b ) ) then
color = { tonumber ( r ), tonumber ( g ), tonumber ( b ) }
for id, player in ipairs( getElementsByType ( "player" ) ) do
destroyBlipsAttachedTo ( player )
if ( players[player] ) then
createBlipAttachedTo ( player, 0, 2, players[source][1], players[source][2], players[source][3] )
else
createBlipAttachedTo ( player, 0, 2, color[1], color[2], color[3] )
end
end
end
end

function setBlipColor ( source, commandName, r, g, b )
if ( tonumber ( b ) ) then
destroyBlipsAttachedTo ( source )
play...
2. [INNE] Proszę o wytłumaczanie mi jak to zrobić bo mi nie wy
Czesc, mam du?y problem z obiektami do samp , a wi?c 2 dni zacz??em robi? r??ne objazdy do serwera truck ale gdy je dodaje to nie wida? ich ;/

[code]#include <a_samp>
#include <streamer>

public OnGameModeInit()

{
CreateDynamicObject(3095, 1768, 865.9599609375, 9.3000001907349, 0, 0, 0);
CreateDynamicObject(3095, 1759.0999755859, 866, 9.3000001907349, 0, 0, 0);
CreateDynamicObject(3095, 1759.0999755859, 870, 9.8999996185303, 90, 180, 0);
CreateDynamicObject(3095, 1754.9000244141, 866.09997558594, 9.8999996185303, 90, 270, 0);
CreateDynamicObject(3095, 1768, 870, 9.8999996185303, 90, 179.99450683594, 0);
CreateDynamicObject(3095, 1772, 866.09997558594, 9.8999996185303, 90, 90, 0);
CreateDynamicObject(3095, 1759, 866.09997558594, 13.999999046326, 0, 0, 0);
CreateDynamicObject(3095, 1768, 866.099609375, 14, 0, 0, 0);
CreateDynamicObject(1499, 1772.0999755859, 861.5, 9.7999992370605, 0, 0, 180);
CreateDynamicObject(1499, 1769.099609375, 861.5, 9.8000001907349, 0, 0, 0);
CreateDynamicObject(3095, 1758.9000244141, 861.99975585938, 7.1999998092651, 90, 0, 0);
CreateDynamicObject(9192, 1776.8000488281, 860.29998779297, 14.60000038147, 0, 0, 180);
CreateDynamicObject(1649, 1757.099609375, 861.69921875, 12.400000572205, 0, 0, 0);
CreateDynamicObject(1649, 1757.2000732422, 861.90002441406, 12.5, 0, 0, 180);
CreateDynamicObject(1649, 1761.3000488281, 861.69995117188, 12.39999961853, 0, 0, 0);
CreateDynamicObject(1649, 1761.1999511719, 861.79998779297...