SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/04/2018, 01:57 PM   #191
Castiel17
Little Clucker
 
Castiel17's Avatar
 
Join Date: Jun 2017
Location: Norway
Posts: 30
Reputation: 0
Default Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe)

version 4 dont work good for all scripter
__________________
Pawn compiler 3.2.3664 Copyright (c) 1997-2018, ITB CompuPhase
Castiel17 is offline   Reply With Quote
Old 12/07/2018, 02:30 AM   #192
DeXXter00
Little Clucker
 
Join Date: Feb 2018
Posts: 32
Reputation: 0
Default Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe)

Thanks I Fixed 2 Cmds CMD:Giveallcash And CMD:Giveallscore

Code:
CMD:giveallcash(playerid, params[])
{
	LoginCheck(playerid);
	LevelCheck(playerid, 4);
	
	new amount;
	if (sscanf(params, "i", amount))
		return SendClientMessage(playerid, COLOR_RED, "Usage: /giveallcash [amount]");

	for (new i, j = GetPlayerPoolSize(); i <= j; i++)
	{
        PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
		GivePlayerMoney(i, amount);
	}

	static string[150];
	format(string, sizeof (string), "%s[%i] has given all players %i money.", pName(playerid), playerid, amount);
	SendClientMessageToAll(COLOR_YELLOW, string);
	return 1;
}

CMD:giveallscore(playerid, params[])
{
    LoginCheck(playerid);
	LevelCheck(playerid, 4);
	
	new amount;
	if (sscanf(params, "i", amount))
		return SendClientMessage(playerid, COLOR_RED, "Usage: /giveallscore [amount]");

	for (new i, j = GetPlayerPoolSize(); i <= j; i++)
	{
	    if (!IsPlayerConnected(i))
			continue;

        PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
		SetPlayerScore(i, (GetPlayerScore(i) + amount));
	}

	static string[150];
	format(string, sizeof (string), "%s[%i] has given all players %i score.", pName(playerid), playerid, amount);
	SendClientMessageToAll(COLOR_YELLOW, string);
	return 1;
}
Please Update CMD:jsettings have some bugs.

Last edited by DeXXter00; 19/07/2018 at 09:14 AM.
DeXXter00 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
[Tutorial] Advanced Capturable Zone Scripting [Easy,Very Fast,Efficient,Variable Time TO Capture For DONOR , More STOCKS ,Foreach] kN1GhT Tutorials 14 13/03/2015 09:50 AM
[FilterScript] InfoOrg ( DOF2/Y-INI - ZCMD - SSCANF2 - FOREACH ) iMega Lançamentos/Releases 9 31/05/2013 12:27 AM
[FilterScript] rVip - SQLite , ZCMD , SSCANF2 Rimmon Filterscripts 3 12/05/2013 07:55 PM
[GameMode] Death Match ( Zcmd - Sscanf2 - Foreach - Streamer ) Diogo123 Lançamentos/Releases 14 15/03/2013 09:33 PM
[GameMode] Blank Gamemode (dini, zcmd, sscanf2, foreach) pantelimonfl Gamemode Scripts 17 10/07/2011 04:56 PM


All times are GMT. The time now is 09:15 PM.


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