Witam wszystkich! Mam problem dotycz?cy wyciszania i zabierania prawka, na poprzedniej edycji serwera wszystko by?o pod??czone dobrze, dzia?a?o prawid?owo i nie by?o b??d?w. Teraz pod??czyli?my r?wnie? dobrze na innej paczce ale nie dzia?a TYLKO ZPJ i wyciszenie, dziwne jest to ?e Ban i Kick dzia?a a tylko w?a?nie wspomniane ZPJ i Mute nie dzia?a. Wszystkie tematy w?asnie dot. tego ?e ZPJ nie dzia?a przeczyta?em, robi?em tak jak to niekt?rzy polecali i dalej nic. A tutaj vehicles.lua
[code]--[[Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
-- Get vehicle keys
function getVehicleKey(plr,veh)
if plr and veh then
local uid=getElementData(plr,"player:uid")
if not uid then return end
if getElementData(plr,"player:admin") or uid == getElementData(veh,"vehicle:ownedPlayer") then
return true
else
return false
end
end
end
local categoryL={[592] = true,[553] = true,[577] = true,[488] = true,[511] = true,[497] = true,[548] = true,[563] = true,[512] = true,[476] = true,[593] = true,[447] = true,[425] = true,[519] = true,[520] = true,[460] = true,[417] = true,[469] = true,[487] = true,[513] = true}
local categoryA1={[462] = true,[468] = true}
addEventHandler("onVehicleStartEnter", root, function(plr,seat,jacked)
if getElementHealth(source) &l...
Witam wszystkich! Mam problem dotycz?cy wyciszania i zabierania prawka, na poprzedniej edycji serwera wszystko by?o pod??czone dobrze, dzia?a?o prawid?owo i nie by?o b??d?w. Teraz pod??czyli?my r?wnie? dobrze na innej paczce ale nie dzia?a TYLKO ZPJ i wyciszenie, dziwne jest to ?e Ban i Kick dzia?a a tylko w?a?nie wspomniane ZPJ i Mute nie dzia?a. Wszystkie tematy w?asnie dot. tego ?e ZPJ nie dzia?a przeczyta?em, robi?em tak jak to niekt?rzy polecali i dalej nic. A tutaj vehicles.lua
[code]--[[Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
-- Get vehicle keys
function getVehicleKey(plr,veh)
if plr and veh then
local uid=getElementData(plr,"player:uid")
if not uid then return end
if getElementData(plr,"player:admin") or uid == getElementData(veh,"vehicle:ownedPlayer") then
return true
else
return false
end
end
end
local categoryL={[592] = true,[553] = true,[577] = true,[488] = true,[511] = true,[497] = true,[548] = true,[563] = true,[512] = true,[476] = true,[593] = true,[447] = true,[425] = true,[519] = true,[520] = true,[460] = true,[417] = true,[469] = true,[487] = true,[513] = true}
local categoryA1={[462] = true,[468] = true}
addEventHandler("onVehicleStartEnter", root, function(plr,seat,jacked)
if getElementHealth(source) &l...
C:Documents and Settings123Pulpit123.pwn(13) : error 010: invalid function or declaration
C:Documents and Settings123Pulpit123.pwn(15) : error 010: invalid function or declaration
C:Documents and Settings123Pulpit123.pwn(17) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
KOD:
Linia 13: if(strcmp(cmd, "/wejdz", true) == 0 || strcmp(cmd, "/enter", true) == 0)
Linia 15: if(IsPlayerConnected(playerid))
Linia17: if(PlayerToPoint(2, playerid,1544.1999511719,-1675.4000244141,13.199999809265))
Ca?y kod:
return 1;
}
if(strcmp(cmd, "/wejdz", true) == 0 || strcmp(cmd, "/enter", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(2, playerid,1544.1999511719,-1675.4000244141,13.199999809265))
{
GameTextForPlayer(playerid, "Witaj na komisariacie", 5000, 1);
SetPlayerInterior(playerid, 10); // ID ITERIORU
SetPlayerPos(playerid,247.5,109.40000152588,1002.9000244141); // POZYCJA DO KT?REJ MA TELEPORTOWAC PO WPISANIU /WEJDZ
}
}