PRGJoin Date: 2007-06-19 Post Count: 4185 |
i said" "can someone make a script so whenever i say "pay (username here)" and he earns some points? i need one for my place! stealth pilot said he would post it some time ago, but he NEVER DID!! i need this! and i cant script what so ever!
~P-R-G~"
you said: "Here''s one that will also pay anyone that you command:
___________________________________________________________________________
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (source ~= "PRG") then return end
if string.match(msg, "/pay") then
local p = game.Players:children()
for i = 1, #p do
if string.match(msg, string.lower(p[i].Name)) then
p[i].leaderstats.Points.Value= p[i].leaderstats.Points.Value + 100
end
end
end
___________________________________________________________________________
Enjoy, and post back here if it doesn't work.
>Pilot<
end
game.Players.ChildAdded:connect(onPlayerEntered)"
the script doesnt work at all! |
|
|
isnt it suppose to be this?
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (source ~= "PRG") then return end
if string.match(msg, "/pay") then
local p = game.Players:children()
for i = 1, #p do
if string.match(msg, string.lower(p[i].Name)) then
p[i].leaderstats.Points.Value= p[i].leaderstats.Points.Value + 100
end
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered)
try it |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
i will try it after this page gets filled up with similar scripts. i like seeing people's different scripts, but thanks i will try it later after the aformentioned statement i made before works out |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
ok i will try it now, but first, can i put in more than one name? and what about a script that lets me be wearing an admin shirt and be able to use the commands (with permission list so i am auto admin and admin shirt graphic id for people wearing the shirt being able to pay people too)? |
|
LinkinParker2Top 100 PosterJoin Date: 2007-06-21 Post Count: 8385 |
CONVERT ALL TO LOWERCASE DARNIT |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
what isnt lowercase? |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
bump
~P-R-G~ |
|
cruckshankTop 100 PosterJoin Date: 2007-07-10 Post Count: 1936 |
stop keeping this alive.. |
|
kjj86Top 100 PosterJoin Date: 2007-06-02 Post Count: 682 |
U JUST BUMPED THIS IDIOT |
|
CPRULEZTop 100 PosterJoin Date: 2007-05-29 Post Count: 3093 |
I think it should be this
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (source = "PRG") then return end
if string.match(msg, "/pay") then
local p = game.Players:children()
for i = 1, #p do
if string.match(msg, string.lower(p[i].Name)) then
p[i].leaderstats.Points.Value= p[i].leaderstats.Points.Value + 100
end
end
end
|
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
it has to be alive! it might be an important script >_> plus its my own thread
cprulez, did you try the script? oh and can i put in more than one name in the source? like (source = "PRG", "CPRULEZ", "telamon")?
ugh i wish people can delete bad posts on the threads they post, i just want this alive until someone gives m an actual working script T_T |
|
ICE128Join Date: 2007-07-03 Post Count: 2376 |
Sigh, people make mistakes sometimes...
Lavamaster, you needed one more "end"
Heres my script:
function onChatted(msg, recipient, speaker)
-- convert to all lower case
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if (source ~= "PRG") then return end
if string.match(msg, "/pay") then
local p = game.Players:children()
for i = 1, #p do
if string.match(msg, string.lower(p[i].Name)) then
p[i].leaderstats.Points.Value= p[i].leaderstats.Points.Value + 100
end
end
end
end
end
game.Players.ChildAdded:connect(onPlayerEntered)
I havent tested this, but to add more than one person replace the ""if (source ~= "PRG") then return end"" part with this:
if (source ~= "PRG") or (source ~= "CPRULEZ") or (source ~= "Telamon" then return end
===========
--->ICE128<---
===========
|
|
ICE128Join Date: 2007-07-03 Post Count: 2376 |
[ Content Deleted ] |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
can i make it (msg, "/pay") to (msg, "pay") without the /? |
|
ROBLOXCOPJoin Date: 2007-09-13 Post Count: 223 |
listen there is this thing called Private Message plz use it and stop spamming! make your own script stop asking for other ppls! |
|
burglyTop 100 PosterJoin Date: 2006-08-20 Post Count: 2843 |
robloxcop, you must be a total noob, since THAT IS WHAT THIS WHOLE FORUM IS FOR! |
|
|
Lolz. True dat burgly!
~The lazies ate me...~darkrai1002 |
|
ROBLOXCOPJoin Date: 2007-09-13 Post Count: 223 |
both of u retarded dumbys better shut ur stupid moyuths because im not a noob so shut up and ive been playing since june or july so shut ur mouth idiot!
Bonito to the world! |
|
burglyTop 100 PosterJoin Date: 2006-08-20 Post Count: 2843 |
dued, you've only been playing for one month! since september, the account numba don't lie. |
|
ROBLOXCOPJoin Date: 2007-09-13 Post Count: 223 |
ive had other accounts retard |
|
ROBLOXCOPJoin Date: 2007-09-13 Post Count: 223 |
ive been playing longer than u so.............. |
|
StarmanJoin Date: 2007-07-13 Post Count: 2166 |
AND even if you were playing that long(which is not true...) then that still doesent make you any better than us. This forum is called "SCRIPTING HELP!!!"
Youre supposed to ask for helps with scripts. because if you break it up, that forum name should make you think...
hmm.... scripts is what its talking about, and help is when you do something for someone etc... so this forum must be for helping others who need help with scripts! That bwas exactally what PGR was doing. He was asking for help with a script stealth gave him, and theres nothing wrong with that.
(sorry if im making no sence... im not a good poster....>.>...<,< or am I?) |
|
StarmanJoin Date: 2007-07-13 Post Count: 2166 |
opps i ment PGR and that was supposed to appear above the 2 post above the one I made a mistake... told ya I would make a mistake.... |
|
StarmanJoin Date: 2007-07-13 Post Count: 2166 |
T~T i mean PRG....(finally) |
|
PRGJoin Date: 2007-06-19 Post Count: 4185 |
yah huh, now can someone make a script and not cause any fights on a thread asking for one simple, flawless script |
|