function Player.MyFunc(player)
print(player:GetName())
end
function Player:GetVIP(player)
local ViP = AuthDBQuery("SELECT `vip` FROM `account` WHERE `id`='"..player:GetAccountId().."'")
ViP = ViP:GetUInt32(0)
end
function salam(event, player, message, lang, Type)
if (message:lower() == "salam")then
if(player:GetVIP() == 7)then
player:SendBroadCastMessage("salam")
end
end
end
RegisterPlayerEvent(18, salam)
im testing custom method!Code:[COLOR="#FF0000"]function Player:GetVIP(player)[/COLOR] local ViP = AuthDBQuery("SELECT `vip` FROM `account` WHERE `id`='"..player:GetAccountId().."'") ViP = ViP:GetUInt32(0) end function salam(event, player, message, lang, Type) if (message:lower() == "salam")then if(player:GetVIP() == 7)then player:SendBroadCastMessage("salam") end end end RegisterPlayerEvent(18, salam)
did i make a mistake in it?(it is not working)
function Player[COLOR="#FF0000"][B]:[/B][/COLOR]GetVIP(player)
function Player[COLOR="#FF0000"][B].[/B][/COLOR]GetVIP(player)