Witam! Dzisiaj na forum wrzucam skrypt pozwalający przybić piątkę z innym graczem w formie przywitania. Skrypt posiada zaimplementowany efekt 3D. Jest to zasób pisany na serwer ,,SentinelRPG" który niestety został sprzedany (jego gamemode.)
⤷ Autorzy: Sakadenik, neku^ (ten z megarpg), TheNoobisty
Witam, chcia?bym aby gracze nie mieli pobranego pliku mp3 w resources. Ze skryptem wstawiam cache="false" i tyle, ale jak to zrobi? z muzyk? i grafikami?
function blokada ( player, seat, jacked )
local kategoria = getElementData(player, "kajdanki")
if kategoria ~= false then
if ( not policeVehicles[getElementModel(source)] ) then
cancelEvent()
outputChatBox("#FF0000Masz kajdanki i nie mo?esz wsi??? do tego pojazdu.",player,255, 0, 0, true)
end
end
end
addEventHandler ("onVehicleStartEnter", getRootElement(), blokada)
function kajdankii ( player, cmd, gracz )
if getElementData(player,'player:duty') and getElementData(player,'player:duty')=='SAPD' then
if not (gracz) then
outputChatBox("B??d! U?yj: /kajdanki <nick/ID> ",player)
return
end
local targetElement=exports['pystories-core']:findPlayer(player, gracz)
if targetElement then
local x, y, z = getElementPosition(player)
local tx, ty, tz = getElementPosition(targetElement)
local distance = getDistanceBetweenPoints3D(x, y, z, tx, ty, tz)
if (distance<=10) then
local dokogo=getElementData(targetElement,"kajdanki")
if (not dokogo or not isElement(dokogo)) then
toggleControl(targetElement, "sprint", false )
toggleControl(targetElement, "ju...
Witam mam problem chce ?eby nad graczem pisa?o tak:
Poziom: (level)
Exp: Respekt/IleDoNextlevela
Noi pr?bowa?em co? takiego:
Prosz? o pomoc.
Level: GetPlayerLevel(playerid);
Respekt: Respekt[playerid];
Respekt do next levela: GetPlayerNextExp(playerid);