Jump to content
  • 0

Question

Posted (edited)
- script Sample -1,{

OnInit:

set .Delay,180;

end;

OnPCKillEvent:

if( @Delay < gettimetick(2) ){

set .@Amount,rand(1,4);

set #CASHPOINTS,#CASHPOINTS + .@Amount;

dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";

if( .Delay ) set @Delay,gettimetick(2) + .Delay;

}

end;

}

how can i make it for 1 map only?

Edited by tenzie

8 answers to this question

Recommended Posts

Posted

Please review your post everytime you post....

i cant read what's ur script....

when i was thinking to help you remove those color tag...

i saw....every words also got it own color tag...so..i..cancelled..

and ask you to repost the content .

anyway....

OnPCKillEvent:
if( strcharinfo(0) == "mapname" ){
...................
...................
}
end;

Posted

What emistry said is easy.. to do:


- script Sample -1,{
OnInit:
set .Delay,180;
end;
OnPCKillEvent:
if( strcharinfo(3) == "mapname" ) {
if( @Delay < gettimetick(2) ) {
set .@Amount,rand(1,4);
set #CASHPOINTS,#CASHPOINTS + .@Amount;
dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points.";
if( .Delay ) set @Delay,gettimetick(2) + .Delay;
}
}
end;
}

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...