Raised This Month: $32 Target: $400
 8% 

Respawn 50% Lucky


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-21-2013 , 07:20   Respawn 50% Lucky
Reply With Quote #1

How can I do? Respawn 50% Lucky

Quote:
Originally Posted by Subrosa007
Hey amazing man!

Can you make me maybe a little /vipmenu? If you read that i give you some things what there should be?

*HP and AP
*Glow Color
*Speed - 450 at the round end and when you pick gun then speed will not go.
*Gravity - 500
*Glock with 1 bull
*Silent Footsteps
*Respawn 50% Lucky

Sounds Good ?
I make ->

PHP Code:
public vipmenuhandler(idmenuitem)
{
        case 
7// Respawn 50% Lucky
        

            
set_task(0.1"respawn"id);
            
client_printc(id"%s You Have just recieved !gRespawn Lucky!n"PREFIX); 
        } 


public 
respawn() {
    if( 
random )
    {
        
ExecuteHamB(Ham_CS_RoundRespawnid);
        
client_printc(idprint_chat"%s: You are Respawn!!"PREFIX);
    }

__________________

Last edited by Erdener; 02-22-2013 at 04:26.
Erdener is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-21-2013 , 07:24   Re: Respawn 50% Lucky
Reply With Quote #2

What do you mean "Respawn 50% Lucky"? That if player dies, he has 1/2 chance of getting respawned?
Unkolix is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-21-2013 , 07:32   Re: Respawn 50% Lucky
Reply With Quote #3

PHP Code:
new truenumber random_num(12);
if ( 
truenumber == )
{
//code here...

__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-21-2013 , 07:32   Re: Respawn 50% Lucky
Reply With Quote #4

yep
__________________
Erdener is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 02-21-2013 , 07:33   Re: Respawn 50% Lucky
Reply With Quote #5

PHP Code:
if( random) )
{
  
// code

__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 02-22-2013 at 09:37.
Backstabnoob is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-21-2013 , 07:38   Re: Respawn 50% Lucky
Reply With Quote #6

Quote:
Originally Posted by Backstabnoob View Post
PHP Code:
if( random) )
{
  
// code

*random(2)
__________________
hleV is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-21-2013 , 08:03   Re: Respawn 50% Lucky
Reply With Quote #7

I make

PHP Code:
public respawn() {
    if( 
random ) )
    {
        new 
iNumiPlayers[32];
        
get_players(iPlayersiNum"ae");
        if( 
iNum )
        {
            new 
id iPlayers[random_num(0iNum)];
            
ExecuteHamB(Ham_CS_RoundRespawnid);
            
client_printc(idprint_chat"%s: You are Respawn!!"PREFIX);
        }
    }

but, doesn't work.
__________________
Erdener is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 02-21-2013 , 08:19   Re: Respawn 50% Lucky
Reply With Quote #8

random(2) will give you 66.6% chance, use random(1)
jimaway is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 02-21-2013 , 08:49   Re: Respawn 50% Lucky
Reply With Quote #9

PHP Code:
if( random_num (0100) <= 50 )
{
// We insert here a gay code


Last edited by Podarok; 02-21-2013 at 08:49.
Podarok is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-21-2013 , 09:14   Re: Respawn 50% Lucky
Reply With Quote #10

doesn't work.
__________________
Erdener is offline
Reply


Thread Tools
Display Modes

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 21:59.


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