You are not logged in.

burakevo

Beginner

  • "burakevo" started this thread

Posts: 2

Date of registration: Jun 25th 2018

  • Send private message

1

Sunday, September 9th 2018, 10:33pm

Mta sa private car

mesela ben bi arabayı t ye basıp /car1 yazıp spwanlamak istiyorum bunu nasıl yapıcaz

TypeR

Trainee

  • "TypeR" is male

Posts: 554

Date of registration: Aug 17th 2017

Location: Istanbul

Occupation: Oyun Sunucusu Hizmetleri

  • Send private message

2

Tuesday, September 11th 2018, 11:06am

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local terimler{
arac_numarasi = 451,
arac_alma_komutu = "car1",
}


arac_alma = {}
addCommandHandler(terimler.arac_alma_komutu,function(source)
if arac_alma[source] and isElement(arac_alma[source]) and destroyElement(arac_alma[source]) then
arac_alma[source] = nil
end
local x,y,z = getElementPosition(source)
arac_alma[source] = createVehicle(terimler.arac_numarasi,x,y,z,0,0,180)
setVehicleColor(arac_alma[source], 0, 156, 255)
warpPedIntoVehicle(source,arac_alma[source])
end)

Rate this thread