Fishy
-
Posts
8 -
Joined
-
Last visited
Posts posted by Fishy
-
-
@Bump!
q.q
-
Okay, I fixed the problem. I now can find the resource and run it successfully, but it seems the code is broken.
I took the code from wiki
function greetPlayer ( )
local joinedPlayerName = getPlayerName ( source )
local serverName = getServerName( )
outputChatBox ( "Helllo " .. joinedPlayerName .. " Wekcome to ".. serverName .."!" , source, 255, 255, 255 )
end
addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer )
Btw, the problem was i named my meta "meta.xml" and you only have to name it "meta"
-
@Bump
Help
-
Yes, I restarted admin panel from Console & refreshed the list.
-
Okay, So I have a resource that I can't start in the admin panel, the name does not even appear in the panel so I can't find it.
It's a welcome message.
The file is located here
C:\Program Files (x86)\MTA San Andreas 1.4\server\mods\deathmatch\resourcesIt is called message
C:\Program Files (x86)\MTA San Andreas 1.4\server\mods\deathmatch\resources\messageIt has two folders inside, one is a .xml and one is a .lua
I am nameing them : message.lua and meta.xml
Names:
message.lua & meta.xmlHere are the codes for them
Note : I am making a script not gamemode
Meta.xml file
message.lua file:
function greetPlayer ( )
local joinedPlayerName = getPlayerName ( source )
local serverName = getServerName( )
outputChatBox ( "Welcome " .. joinedPlayerName .. " to ".. serverName .."!" , source, 255, 255, 255 )
end
addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer )
Please help me!
-
Well, my resource isn't working because I don't know how to start it.
-
Thanks man!
One of the best tutorials out there! I was searching for a good tutorial for some time now and wiki doesn't explain much!
Now I understand, Thanks again!
Random map instead of voting
in Scripting
Posted
I have a race mode and I want to make it to play a random map instead of voting panel, any help would be appreciated.