Jump to content

message


kevin11

Recommended Posts

i want that the message just shows to the player with skin 162 but its not working

and no errors :oops:

function delayedChat ( text )
local skin = getPlayerSkin ( player )
if skin == 162 then
outputChatBox ( "" .. text )
end
setTimer ( delayedChat, 1, 1, "welcome!" )
end

Link to comment

Why it doesn't work? Be more precise.

You can't set timer with 1ms interval. You need player element for outputChaBox to send message only to that player. What is player in your function? You MUST learn about function parameters/arguments and types of them.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...