1. Co jest w tym ?le:
policeVehicles = { [598]=true,[596]=true,[597]=true,[599]=true, [528]=true, [490]=true, [523]=true, [427]=true, [601]=true, [497]=true }
policeSkins = { [280]=true,[281]=true }
function policeenterVehicle ( player, seat, jacked ) --when a player enters a vehicle
if ( policeVehicles[getElementModel ( source )] ) and ( not policeSkins[getElementModel ( player )] ) and ( seat == 0 ) then --if the vehicle is one of 4 police cars, and the skin is not a police skin
removePedFromVehicle ( player )--force the player out of the vehicle
outputChatBox ( Nie pracujesz w policji, player ) --and tell the player why
end
end
addEventHandler ( onVehicleEnter, getRootElement(), policeenterVehicle )
2. Jak zrobi? list? graczy z serwera i banner gracza?
Ostatnio zmieniony przez hale 2011-12-31, 23:08, w całości zmieniany 1 raz
Tworzysz baze , zapisujesz do niej dane kt?re chcesz aby mogli je zobaczy? gracze na swoim banerze nast?pnie pobierasz skryptem PHP dane z bazy i wklejasz na odpowiednie miejsce.
Poczytaj o bazach danych MYSQL i pobieraniu , zapisywaniu i tworzeniu danych w tabelach.
Wpisz w google mysql query.
Podpis
Płatny LUA skrypter - wykonam skrypty.
Kontakt 3263073.
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach