Jump to content
MakeWebGames

Recommended Posts

Posted

Custom Hospital Message

Created By: Cronus

After a user attacks another player and places them in the hospital they have the choice to create their own reason why the player is in the hospital or use the default one.

The reason is shown by the player when they are on the hospital list.

hospmessage.jpg

Price:

$20.00 USD

Click here to purchase.

Posted

Re: [TGM] Custom Hospital Message [TGM]

yeah no offence Cronus, its a good idea but needs 2 things:

1. Lower price

2. A way to make it so they cant post things like:

"John seen Marks cock and fainted"

Posted

Re: [TGM] Custom Hospital Message [TGM]

 

With Cronus permission, i will make this free?

lol he would obviously say "no" (or not...??) because it would lose him money which nobody certainly wants. Especially if it's a option.

Posted

Re: [TGM] Custom Hospital Message [TGM]

But this takes like 2 minutes to make.

I do not want this modification in my game, but others do.

Even putting an price up is to much :lol:

Posted

Re: [TGM] Custom Hospital Message [TGM]

Im sure cronus wont mind lol, its not exactly like someone will pay more then $5 for it, but im going to give him a +1 because he has given it a go and contributed alot to CE

Posted

Re: [TGM] Custom Hospital Message [TGM]

Never trust user input.. I can see this one not ending good. You will need to filter out all the bad words, and anything else players my think to put into it. Easy to code yes, to prevent stupid user input alot harder.

Posted

Re: [TGM] Custom Hospital Message [TGM]

 

Maybe a simple threat of being Fed Jailed for life would do the trick?

Seems simple enough to stop them.

If they enjoy the game, they will follow the rules, I'm sure you could create a small filter for words if you really wanted.

Posted

Re: [TGM] Custom Hospital Message [TGM]

Owners shouldnt be wasting time policing a game. Unless something adds great value to the game, it's not worth the extra fuss. This mod is not with the fuss.

There are too many punk kids out there that get off being stupid little punks

Posted

Re: [TGM] Custom Hospital Message [TGM]

 

Owners shouldnt be wasting time policing a game.

That's what the staff are for, that's their job. lol.

Lot's of games use this sytem already, and have had no problem.

Posted

Re: [TGM] Custom Hospital Message [TGM]

 

There is >.>
make a mini censor system.

[code]
$phrase = 'hello this contains a zero';
$look[0] = 'zero';
$look[1] = 'one';
$look[2] = 'two';
$look[3] = 'three';
$i = 0;
while($i < 3){
if ($phrase = $look[$i]){
echo 'The phrase contains a number.';
exit; }
}

[/code]

That should work.

 

kraig has a point, i doubt there's anything to stop filling the messages with racist/sexist things

Posted

Re: [TGM] Custom Hospital Message [TGM]

 

[code]
$phrase = 'hello this contains a zero';
$look[0] = 'zero';
$look[1] = 'one';
$look[2] = 'two';
$look[3] = 'three';
$i = 0;
while($i < 3){
if ($phrase = $look[$i]){
echo 'The phrase contains a number.';
exit; }
}

 

Now deathstar, i though you said you knew php well?

Lets see,

- That would loop endlessly since $i doesn't increment

- A foreach loop would be far better

- $phrase = $look[$i] would always equal true since it's an assignment not comparison

- That wouldn't check the last word since you're doing less than 3

- You'd have to use stripos or something similar to check against the string

- It'd be cleaner to write all the words in a string, then explode it into an array[/code]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...