Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - =RK=MarineForce
1
Snippet Showroom / Simple Ping System
« on May 28th, 03:04 PM »
onPlayerJoin
Code: [Select]
NewTimer( "pinglimit", 3000, 0, player.ID );
Class:
Code: [Select]
warning
Code: [Select]
function pinglimit(player)
{
local player = FindPlayer(player);
if(player.IsSpawned)
{
if(player.Ping > 400)
{
player.Pos.z += 5;
stats[player.ID].warning++;
MessagePlayer(" " + bazi + " You've been slapped due to having high ping! ",player);
if(stats[player.ID].warning = 1)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (1/8) ");
if(stats[player.ID].warning = 2)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (2/8) ");
if(stats[player.ID].warning = 3)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (3/8) ");
if(stats[player.ID].warning = 4)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (4/8) ");
if(stats[player.ID].warning = 5)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (5/8) ");
if(stats[player.ID].warning = 6)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (6/8) ");
if(stats[player.ID].warning = 7)Message(" " + bazi + " " + player.Name + " WARNED PING LIMIT (7/8) ");
if(stats[player.ID].warning = 8)Message(" " + bazi + " " + player.Name + "  KICKED DUE TO HAVING PING (8/8)");
if(stats[player.ID].warning = 8)KickPlayer(player);
}
}

}

you can freeze player too if him ping high or slap or drown . but this system is good. you can also add fps system just add FPS instead of Ping
2
what?
3
else if( cmd == "wep" || cmd == "we" )
{
if(player.Skin = ID)  or add if(player.Team)
{
Message(" randi ka bacha");
}
}
4
Quote from Gitobaloch on May 22nd, 03:39 PM
we're not brianless if a newbie try to copy it he will definetly get error so that's the reason im saying hh.
bruh huh? he's saying plr is not defined Lmao, how it will work?? he know it but he've to make some shits.
5
i m brain donor that i posted it. bump*

can't you change it to player? so brainless
6
Code: [Select]
else if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
7
Code: [Select]
if ( cmd == "pick" )
{
hp <- CreatePickup(368, Vector(-1195.89, 108.588, 11.1278));
NewTimer( "hp", 5000, 1, pickup.ID );
}
function onPickupPickedUp( player, pickup )
{
  if( pickup.Model == 368 ) 
{
hp.Remove();

}
 }

function hp( player, pickup ){
    if( pickup.Model == 368 ) {
    hp.Remove();
}}

Code: [Select]
hp.Remove(); // to remove
8
Script and Content Requests / Re: Cash Saving System
« on May 16th, 02:23 AM »
its register system not account.
9
Scripting and Server Management / Re: Pick ups Problem.
« on May 16th, 02:22 AM »
Code: [Select]
bite <- CreatePickup(366, Vector(-1195.89, 108.588, 11.1278));

Code: [Select]
function onPickupPickedUp( player, pickup )
{
  if( pickup.Model == 366 ) 
{
if(player.Cash < 500) MessagePlayer("[#00cc00] Need enough money!",player);
else{
 player.SetWeapon( 10, 999 );
MessagePlayer(" You got a Pump-Shotgun",player);
//add this if u wanat to remove pickup bite.remove(); if not work pickup.Remove();
}
}

Code: [Select]
player.SetWeapon( WEPID, ammo );
10
thanks helpful :)
11
Script Showroom / Re: DI System
« on May 13th, 02:13 AM »
brah. i m using 3 timers like this why my server not crash xd.

and idk about cilent side...

DiscorD: MarineFOrce#4119

check out my server: 49.12.15.63:9994
13
Script Showroom / Re: DI System
« on May 10th, 05:46 AM »
DI TIMING SYSTEM

so you guys thinking how can we make timer?

its the best ez waya to make timer:

ITS HELP YOU ALOT IN A GOOD GAMEMODE!

example

add this onscriptload.

Code: [Select]
g_timer <- 0;
NewTimer( "g_timer", 1000, 0);
Code: [Select]
function rounds()
{

if ( g_timer == 180 )
{
Message(" Round Has Been Ended Due To Time Over");
g_timer = 0;                                             
}
Announce( "~y~ TIME : " + g_timer + " ", player , 1 )
g_timer++;
}

}

how to minus time:

Code: [Select]
g_timer --;

how to plus time:

Code: [Select]
g_timer++;
how to reset time:

Code: [Select]
[code]g_timer = 0;

how to set time:

Command:
Code: [Select]
if(cmd=="settime")
{
        if ( text && IsNum( text ) )
        {               
g_timer = text.tointeger();
MessagePlayer( "[#ffffff][ADMIN][#00ff00] Set the Time: [#ffbb00]"+g_timer+"",player);
}
}

You can add many times for example
Code: [Select]
etc <- 0;
g_xx <- 0;
g_pp <- 0;

IF YOU ADDED IT IN ONSCRIPTLOAD BUT IF U ADD (PLAYER) IT WILL WONT WORK! THATS PROB add it onroundstart etc. you can STOP THE ANNOUNCE BY
Code: [Select]
g_timer.Stop()
14
Genius man!