Raised This Month: $ Target: $400
 0% 

[L4D2] Password Saferoom


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 07-30-2010 , 10:47   [L4D2] Password Saferoom
Reply With Quote #1

Every Level, After 25% of the map passed, one of the survivor will received a Hint notice for 5 seconds for the Password. After 50% of the map passed, another survivor get another Hit notice iwth the password, 75% and 100%

total 4 passwords , 1password is given such as number 1 , 2 ~ 9 ... at the end, the survivors must type eg. !1234 in order to open the saferoom door
password is (25%50%75%100%) <--- numbers given in order. survivors will get 3 tries. if 3 tries are wrong a tank will be summoned and the survivors need to defeat the tank in 30 seconds otherwise they will be slayed =d
ghosthunterfool is offline
ZombieHunterX
Junior Member
Join Date: Jun 2010
Old 07-30-2010 , 12:55   Re: [L4D2] Password Saferoom
Reply With Quote #2

not a good idea,why?: because when ur playing you wont notice the appearing number,and if it dissapears before you can read it,you can instant incap urself since you cant win without 1 of the numbers.
ZombieHunterX is offline
IronWarrior
Veteran Member
Join Date: Jan 2010
Old 07-30-2010 , 13:50   Re: [L4D2] Password Saferoom
Reply With Quote #3

Make it so it gives a popup menu that you need to "comfirm" to close.

Also what happens if a player leaves or dies?
IronWarrior is offline
ZombieHunterX
Junior Member
Join Date: Jun 2010
Old 07-30-2010 , 14:10   Re: [L4D2] Password Saferoom
Reply With Quote #4

Quote:
Originally Posted by IronWarrior View Post
Make it so it gives a popup menu that you need to "comfirm" to close.

Also what happens if a player leaves or dies?
thats also why it doesnt work,Ragequiters.
ZombieHunterX is offline
Death [GER]
Senior Member
Join Date: Mar 2010
Old 07-30-2010 , 17:29   Re: [L4D2] Password Saferoom
Reply With Quote #5

Code:
static gotPassword[MAXPLAYERS + 1];
Whenever some gets a Number of the Password then do
[/code]gotPassword[Client] = Password;[/code]
while Password is the Password for this Client

Then do this

Code:
public OnClientDisconnect(Client)
{
if(gotPassword[Client] != 0)
{
PrintToChatAll("The Password of the player was %d", gotPassword[Client]);
}
}
Not the best solution but something like this could work..

To make the keycode thing make this

Code:
static String:CorrectPassword[5]
add this

Code:
public OnPluginStart()
{
RegConsoleCmd("sm_unlocksaveroom",UnlockSaveroom");
}
then add this to the gotPassword function
Code:
Format(CorrectPassword, sizeof(CorrectPassword), "%s%d", CorrectPassword, Password);
Password is the new Password number

then the console command

Code:
public Action:UnlockSaveroom(Client, Args)
{
decl String:TryCode[5]
GetCmdArg(1, TryCode, 5);
if(StrEqual(TryCode, CorrectPassword))
{
AcceptEntityInput(Saveroomdoorblabla, "unlock");
}
}
Just lock the door on map start and do shits.. i wont do this for you and gave you enough code to get started ;P
Death [GER] is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 07-30-2010 , 23:52   Re: [L4D2] Password Saferoom
Reply With Quote #6

i not sure how to code =X help me please?
ghosthunterfool is offline
ghosthunterfool
Senior Member
Join Date: Mar 2010
Old 07-30-2010 , 23:56   Re: [L4D2] Password Saferoom
Reply With Quote #7

i decide to change the plugin abit, 25% of the map and so on 50% , 75% 100%. The password will be placed in Hint TO ALL PLAYERS... the players then need to remember... even all ragequit the host will sitll have the passwords =D
ghosthunterfool is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode