Jump to content
MakeWebGames

[TGM] Custom Hospital Message [TGM]


Cronus

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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...