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: praking
1. System praking
Witaj koledze robi? system parkingu i pr?buje zrobi? .
To mia?o dzia?a? na zasadzie komend 2 i funkcji np. res pana auta
Oto m?j kod .
Ten kod jest z rpg
Kod:

function onPlayerWantToPark()
if (source == park) then
car = getPedOccupiedVehicle(getLocalPlayer())
local money = getPlayerMoney(getLocalPlayer())
if (money > 250) then
name = getPlayerName(getLocalPlayer())
setElementData(car,"parkowner",name);
showCursor(false);
triggerServerEvent("takeAmoney",getLocalPlayer())
guiSetVisible(window,false)
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),parker)
else
outputChatBox("Nie masz wystarczaj?co du?o pieni?dzy!",255,0,0);

Daje piwo :piwo: <> :piwo: