Wysłany: 2016-10-31, 08:59
krystek77
Wiek: 27 Na forum: 4031 dni Posty: 135
Nick w MP: Krystek
Piwa : 176
Witam chcia?bym zrobic skrypt na prezent kt?rego moza raz zabrac
Mam takie co? :
rezent = createPed ( 67 , - 2297.44 , - 1659.85 , 482.61 )
dmarker = createMarker ( - 2297.44 , - 1659.85 , 482.61 - 1 , "cylinder" , 2 , 0 , 0 , 0 , 100 )
function wiadomosc ( plr , md )
outputChatBox ( "Witaj Graczu Dzi? jest Halloween z tej okazji mamy dla ciebie Prezenty!!" , plr )
outputChatBox ( "** Je?li chcesz otrzyma? orezent wpisz /tak **" , plr )
end
addEventHandler ( "onMarkerHit" , dmarker , wiadomosc )
function dak47 ( plr , cmd )
outputChatBox ( "Dosta?e? w prezencie 1500 PLN ;)" , plr )
takePlayerMoney ( plr , 1500 )
end
addCommandHandler ( "tak" , dak47 )
Chcia?bym to w gui ale az taki dobry nie jestem xD
Więcej szczegółów
Wystawiono 3 piw(a):dawidmajka , xBiceK , lugos21154
Wysłany: 2016-10-31, 19:31
_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
rezent = createPed ( 67 , - 2297.44 , - 1659.85 , 482.61 )
dmarker = createMarker ( - 2297.44 , - 1659.85 , 482.61 - 1 , "cylinder" , 2 , 0 , 0 , 0 , 100 )
function wiadomosc ( plr , md )
outputChatBox ( "Witaj Graczu Dzi? jest Halloween z tej okazji mamy dla ciebie Prezenty!!" , plr )
outputChatBox ( "** Je?li chcesz otrzyma? orezent wpisz /tak **" , plr )
end
addEventHandler ( "onMarkerHit" , dmarker , wiadomosc )
function dak47 ( plr , cmd )
if not getElementData ( plr , "prezent" ) and isElementWithinMarker ( plr , dmarker ) then
outputChatBox ( "Dosta?e? w prezencie 1500 PLN ;)" , plr )
givePlayerMoney ( plr , 1500 )
setElementData ( plr , "prezent" , true )
end
end
addCommandHandler ( "tak" , dak47 )
Zr?b tylko zapis element daty prezent i ju?
Tagi: skrypt :: prezent
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: