SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 28/05/2018, 07:28 PM   #1271
RxErT
Huge Clucker
 
RxErT's Avatar
 
Join Date: May 2016
Location: SA:MP Lemon
Posts: 253
Reputation: 12
Default Re: Useful Snippets

Quote:
Originally Posted by CodeStyle175 View Post
when you use onplayerupdate, you have to limit the check amount. onplayerupdate is good because, when player is afk it won't be called.
Okay! Thanks for this advice!

Although I'm not gonna make it again, SouthClaw already put a link that includes a Ping kicker... so nvm
__________________
Filterscript:[UPDATED] DM Event [Friendly, Funny, Controllable]
Snippet:Whisper and Car whisper commands, controllable
Discord: Flofey#8478
Github: RxErT's profile
Working-on: Administration script Based on SQLite
Love Quote: "He stepped down, trying not to look long at her, as if she were the sun, yet he saw her like the sun, even without looking." ~Leo Tolstoy - Anna Karenina
RxErT is offline   Reply With Quote
Old 29/05/2018, 12:13 PM   #1272
SeanDenZYR
Big Clucker
 
Join Date: May 2016
Location: Philippines!!
Posts: 169
Reputation: 20
Default Re: Useful Snippets

Chat Cleaner:
Code:
CMD:chatcleaner(playerid, params[])
{
    for(new i = 0; i < 250; i++)
    {
        SendClientMessage(playerid, -1, " ");
    }
    return 1;
}
SeanDenZYR is offline   Reply With Quote
Old 09/06/2018, 04:11 PM   #1273
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: 666
Posts: 1,490
Reputation: 265
Default Re: Useful Snippets

PHP Code:
/*
    A very simple help system to help show the usage and importance of iterator/ foreach
    along with the new dialog styles added in 0.3.7

    This is just taken out of, one of my Call of Duty scripts.

    - Logic_
*/ 
Link: https://raw.githubusercontent.com/Al...aster/help.pwn
__________________
Premium quality and reasonable pricing game Server hosting
Logic_ is offline   Reply With Quote
Old 10/06/2018, 07:27 AM   #1274
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: 666
Posts: 1,490
Reputation: 265
Default Re: Useful Snippets


Team Fortress 2: Payload

PHP Code:
/*
    Documentation
    -------------
    Mode name: Payload
    Author: Logic_ (eXpose)
    Script Type: Gamemode

    A very simple implementation of TF2's Payload mode in SA-MP, originally was planned for a server which was later cancelled.
*/ 
Link: https://github.com/AliLogic/Payload-SAMP/tree/master



Gun Game: SA-MP

PHP Code:
/* 
    Documentation 
    ------------- 
    Mode name: Gun Game 
    Author: Logic_ (eXpose) 
    Script Type: Gamemode 

    A very simple implementation of CS:GO's Gun Game mode in SA-MP, originally was planned for a server which was later cancelled. 
*/ 
LINK: https://github.com/AliLogic/Gun-Game-SAMP

Last edited by Logic_; 10/06/2018 at 06:00 PM.
Logic_ is offline   Reply With Quote
Old 16/06/2018, 08:09 PM   #1275
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 213
Reputation: 69
Default Re: Useful Snippets

Simple Lotto: Source
Lokii is offline   Reply With Quote
Old 16/06/2018, 08:34 PM   #1276
cuber
Gangsta
 
cuber's Avatar
 
Join Date: Oct 2016
Location: KS.
Posts: 775
Reputation: 137
Default Re: Useful Snippets

Quote:
Originally Posted by SeanDenZYR View Post
Chat Cleaner:
Code:
CMD:chatcleaner(playerid, params[])
{
    for(new i = 0; i < 250; i++)
    {
        SendClientMessage(playerid, -1, " ");
    }
    return 1;
}
Code:
stock ClearChatbox(playerid, lines)
{
    for(new i = 0; i < lines; i++)
    {
        SendClientMessage(playerid, -1, " ");
    }
    return true;
}

ClearChatbox(playerid, 20); // put how many lines you want
cuber is offline   Reply With Quote
Old 16/06/2018, 09:12 PM   #1277
Dignity
High-roller
 
Dignity's Avatar
 
Join Date: May 2013
Location: Belgium
Posts: 1,913
Reputation: 1102
Default Re: Useful Snippets

Quote:
Originally Posted by cuber View Post
Code:
stock ClearChatbox(playerid, lines)
{
    for(new i = 0; i < lines; i++)
    {
        SendClientMessage(playerid, -1, " ");
    }
    return true;
}

ClearChatbox(playerid, 20); // put how many lines you want
such a big improvement !
__________________

Dignity is offline   Reply With Quote
Old 16/06/2018, 09:23 PM   #1278
Crystallize
High-roller
 
Join Date: Aug 2013
Posts: 1,576
Reputation: 314
Default Re: Useful Snippets

Quote:
Originally Posted by Dignity View Post
such a big improvement !
I know right hahahaha he literally did nothing. LMFAO.
__________________
SAMP BATTLE GROUNDS
87.98.241.207:7780
Crystallize is offline   Reply With Quote
Old 16/06/2018, 09:57 PM   #1279
cuber
Gangsta
 
cuber's Avatar
 
Join Date: Oct 2016
Location: KS.
Posts: 775
Reputation: 137
Default Re: Useful Snippets

Quote:
Originally Posted by Crystallize View Post
I know right hahahaha he literally did nothing. LMFAO.
I just thought I should paste it there. Go on discord and spam the n word again because you got banned because of Sew.
cuber is offline   Reply With Quote
Old 16/06/2018, 11:46 PM   #1280
Crystallize
High-roller
 
Join Date: Aug 2013
Posts: 1,576
Reputation: 314
Spray Re: Useful Snippets

Quote:
Originally Posted by cuber View Post
I just thought I should paste it there. Go on discord and spam the n word again because you got banned because of Sew.
Chill brother just because I laughed that someone roasted you doesn’t mean I have something against you.LOL
__________________
SAMP BATTLE GROUNDS
87.98.241.207:7780
Crystallize is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
READ Usefull Links to snippets and other -Sneaky- Help Archive 5 02/05/2009 11:22 AM


All times are GMT. The time now is 04:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.