Menu

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.

Show posts Menu

Messages - =RK=MarineForce

#1
Snippet Showroom / Simple Ping System
May 28, 2020, 02:04 PM
onPlayerJoin
NewTimer( "pinglimit", 3000, 0, player.ID );
Class:
warning
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
#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 22, 2020, 02:39 PMwe'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
else if (cmd== "myuid")
{
MessagePlayer("[#ffffff]>> " + plr.Name + "[#00d9ff]'s UID: [#ffffff]" + plr.UID + ".",player);
}
#7
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();
}}

hp.Remove(); // to remove
#8
its register system not account.
#9
bite <- CreatePickup(366, Vector(-1195.89, 108.588, 11.1278));
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();
}
}

player.SetWeapon( WEPID, ammo );
#10
thanks helpful :)
#11
Script Showroom / Re: DI System
May 13, 2020, 01: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
May 10, 2020, 04: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.

g_timer <- 0;
NewTimer( "g_timer", 1000, 0);
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:

g_timer --;
how to plus time:

g_timer++;
how to reset time:

[code]g_timer = 0;
how to set time:

Command:
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
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 g_timer.Stop()