SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 10/05/2013, 03:59 PM   #21
[L]azy[H]aze
Gangsta
 
[L]azy[H]aze's Avatar
 
Join Date: Apr 2013
Location: Ireland/latvia
Posts: 517
Reputation: 34
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

good job !
[L]azy[H]aze is offline   Reply With Quote
Old 20/05/2013, 08:18 PM   #22
Goldilox
Huge Clucker
 
Join Date: Mar 2012
Posts: 265
Reputation: 8
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Hey bro, I am having issues with the /ban, /br and the /unban commands and can't figure it out. It keeps on saying "Player didn't found in database."

Code:
CMD:unban(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= 2)
	{
		new PlayerFile[50],string[128];
		format(PlayerFile, sizeof(PlayerFile), "Saves/%s.ini", params);
		if(!strlen(params)) return SendClientMessage(playerid, COLOR_GREY, "/unban [playername]");
		if(!dini_Exists(PlayerFile)){SendClientMessage(playerid, COLOR_GREY, "No such player found in the database.");}
		else
		{
		    if(dini_Int(PlayerFile,"Banned")==0)return SendClientMessage(playerid,-1,"That Player is already unbanned");
			dini_IntSet(PlayerFile, "Banned", 0);
    		SendClientMessage(playerid, COLOR_WHITE, "Account Unbanned");
    		format(string,sizeof(string),"unbanip %s",dini_Get(PlayerFile,"IP"));
	 		SendRconCommand(string);
		}
 	}else return 0;
	return 1;
}
CMD:ban(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= 3)
	{
		new PlayerFile[50];
		format(PlayerFile, sizeof(PlayerFile), "Saves/%s.ini", params);
		if(!strlen(params)) return SendClientMessage(playerid, COLOR_GREY, "/oban [playername]");
		if(!dini_Exists(PlayerFile)) {SendClientMessage(playerid, COLOR_GREY, "No such player found in the database.");}
		else
		{
		    if(dini_Int(PlayerFile,"Banned")==1)return SendClientMessage(playerid,-1,"That Player is already banned");
    		dini_IntSet(PlayerFile, "Banned", 1);
    		SendClientMessage(playerid, COLOR_WHITE, "Account Banned");}
 	}else return 0;
	return 1;
}
//==============================================================================
CMD:br(playerid, params[])
{
	if(PlayerInfo[playerid][AdminLevel] >= 2)
	{
		new PlayerFile[50];
		format(PlayerFile, sizeof(PlayerFile), "Saves/%s.ini", params);
		if(!strlen(params)) return SendClientMessage(playerid, COLOR_GREY, "/banreason [playername]");
		if(!dini_Exists(PlayerFile)) {SendClientMessage(playerid, COLOR_GREY, "No such player found in the database.");}
		if(dini_Int(PlayerFile,"Banned")==1)
		{
		    new str[256];
    		format(str,sizeof(str),"\"%s\" was banned for \"%s\" by \"%s\"",params,dini_Get(PlayerFile,"Reason"),dini_Get(PlayerFile,"Banner"));
    		SendClientMessage(playerid, COLOR_WHITE, str);
		}else return SendClientMessage(playerid,-1,"That Player is not banned");
 	}else return 0;
	return 1;
}
__________________


SERVER IP: 198.245.61.167:7779
SERVER WEBSITE: TwD Role-Play

Goldilox is offline   Reply With Quote
Old 20/05/2013, 08:36 PM   #23
K3
Big Clucker
 
Join Date: Apr 2013
Posts: 48
Reputation: 2
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Nice
__________________

IP:74.91.124.171:7777
Warning: Very addicting, with a good player base!
K3 is offline   Reply With Quote
Old 20/05/2013, 08:54 PM   #24
Geeboi_Mehdi
Huge Clucker
 
Join Date: Apr 2012
Posts: 452
Reputation: 9
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Good job mate i like it but still seems nice script why would you give up feel bad
__________________
Geeboi_Mehdi is offline   Reply With Quote
Old 20/05/2013, 10:12 PM   #25
Rory
Big Clucker
 
Rory's Avatar
 
Join Date: Aug 2012
Location: tekkit.ng-gaming.net
Posts: 74
Reputation: 24
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Nice Job Very Useful.
__________________
Pond@ng-gaming.net
Rory is offline   Reply With Quote
Old 21/05/2013, 11:16 AM   #26
LaGrande
Big Clucker
 
Join Date: Apr 2012
Location: NoWhere
Posts: 138
Reputation: 15
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Quote:
Originally Posted by Goldilox View Post
Hey bro, I am having issues with the /ban, /br and the /unban commands and can't figure it out. It keeps on saying "Player didn't found in database."
Make sure the user accounts/files are being created in Scriptfiles/Saves. I don't find any issues with those commands
LaGrande is offline   Reply With Quote
Old 21/05/2013, 11:38 AM   #27
Inverse
Huge Clucker
 
Inverse's Avatar
 
Join Date: Jun 2011
Location: Braavos
Posts: 276
Reputation: 19
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Nice one. 8/10.
__________________
[FS] xPlosions - NEW!
Inverse is offline   Reply With Quote
Old 02/06/2013, 05:47 PM   #28
IceBilizard
Gangsta
 
Join Date: Feb 2012
Posts: 860
Reputation: 37
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Hey bro weather bug is fixed thanks but now another bug when we use /gmx after connect player spawns in blueberry can fix this problem?
IceBilizard is offline   Reply With Quote
Old 06/10/2013, 05:10 PM   #29
Hussain
Big Clucker
 
Join Date: Dec 2011
Posts: 57
Reputation: -4
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Pretty nice, expect there are no orgs?
Hussain is offline   Reply With Quote
Old 07/10/2013, 02:48 PM   #30
Hussain
Big Clucker
 
Join Date: Dec 2011
Posts: 57
Reputation: -4
Default Re: The ReBorn Dudes Freeroam/Roleplay Script

Quote:
Originally Posted by LaGrande View Post
Make sure the user accounts/files are being created in Scriptfiles/Saves. I don't find any issues with those commands
Hey bro, could you upload the filterscripts with the Faction/Orginization System?
Hussain 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
[HELP]Dudes! murdoxix Help Archive 0 30/01/2011 04:47 PM


All times are GMT. The time now is 08:46 AM.


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