-- tworzymy funkcj?, kt?r? b?dzie wzywa? command handler, z argumentami thePlayer (gracz), command (komenda), vehicleModel (model pojazdu)
function createVehicleForPlayer(thePlayer, command, vehicleModel)
-- Tutaj stworzymy i zespawnujemy pojazd
end
-- tworzymy command handler
addCommandHandler("stworzpojazd", createVehicleForPlayer)
Je?li mam w createVehicleForPlayer i jest tam napisane "thePlayer", a chc? zmieni? na admina i RCON'a to musz? napisa? theAdmin, theRCON?
I jak by kto? wiedzia? jak zrobi? tabel? w w?tku do LUA w jednym kolorze? A nie jednym kolorem? |