All pastes #1353357 Raw Edit

Untitled

public c v1 · immutable
#1353357 ·published 2009-03-05 07:38 UTC
rendered paste body
 	if(strcmp(cmd, "/afactioncolor", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactioncolor [factionid] [hex]");				return 1;			}			new id = strval(tmp);			if (PlayerInfo[playerid][pAdmin] >= 3)			{				new length = strlen(cmdtext);				while ((idx < length) && (cmdtext[idx] <= ' '))				{					idx++;				}				new offset = idx;				new result[128];				while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))				{					result[idx - offset] = cmdtext[idx];					idx++;				}				result[idx - offset] = EOS;				if(!strlen(result))				{					SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactioncolour [factionid] [hex]");					return 1;				}				if(strfind( result , "|" , true ) == -1)    			{		   			strmid(DynamicFactions[id][fColor], (result), 0, strlen((result)), 128);					format(string, sizeof(string), "[Info] You have set faction ID: %d's colour to %s.", id,(result));					SendClientMessage(playerid, COLOR_ADMINCMD, string);					SaveDynamicFactions();				}				else				{				    SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Invalid Symbol, | is not allowed!");				}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}////////////////////////////////////////////////////////////////////////////////////////////// 	if(strcmp(cmd, "/afactionspawn", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionspawn [factionid]");				return 1;			}			new id = strval(tmp);			if (PlayerInfo[playerid][pAdmin] >= 3)			{				new Float:x,Float:y,Float:z;				GetPlayerPos(playerid, x, y, z);				DynamicFactions[id][fX] = x;				DynamicFactions[id][fY] = y;				DynamicFactions[id][fZ] = z;				SaveDynamicFactions();				format(string, sizeof(string), "[Info] You have set faction ID: %d's spawnpoint.", id);				SendClientMessage(playerid, COLOR_ADMINCMD, string);			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionname", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionname [factionid] [name]");				return 1;			}			new id = strval(tmp);			if (PlayerInfo[playerid][pAdmin] >= 3)			{				new length = strlen(cmdtext);				while ((idx < length) && (cmdtext[idx] <= ' '))				{					idx++;				}				new offset = idx;				new result[128];				while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))				{					result[idx - offset] = cmdtext[idx];					idx++;				}				result[idx - offset] = EOS;				if(!strlen(result))				{					SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionname [factionid] [name]");					return 1;				}				if(strfind( result , "|" , true ) == -1)    			{		   			strmid(DynamicFactions[id][fName], (result), 0, strlen((result)), 128);					format(string, sizeof(string), "[Info] You have set faction ID: %d's name to %s", id,(result));					SendClientMessage(playerid, COLOR_ADMINCMD, string);					SaveDynamicFactions();				}				else				{				    SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Invalid Symbol, | is not allowed!");				}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionuseskins", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionuseskins [factionid]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionuseskins [factionid]");						return 1;					}										if(DynamicFactions[id][fUseSkins])					{	  					DynamicFactions[id][fUseSkins] = 0;						new form[128];						format(form, sizeof form, "[Info] Faction ID: %d's skin's disabled.", id);						SendClientMessage(playerid, COLOR_ADMINCMD,form);				    	SendFactionMessage(id, COLOR_FACTIONCHAT, "Faction skin's disabled by an administrator.");						SaveDynamicFactions();					}					else					{	  					DynamicFactions[id][fUseSkins] = 1;						new form[128];						format(form, sizeof form, "[Info] Faction ID: %d's skin's enabled.", id);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SendFactionMessage(id, COLOR_FACTIONCHAT, "Faction skin's enabled by an administrator.");						SaveDynamicFactions();						for(new i=0;i<MAX_PLAYERS;i++)						{					    	if(IsPlayerConnected(i))					       	{								if(PlayerInfo[i][pFaction] == id)								{									SetPlayerToFactionSkin(i);								}					       	}				       	}					}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionrankamount", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionrankamount [factionid] [2-10]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionrankamount [factionid] [2-10]");						return 1;					}					new id2;					id2 = strval(tmp);					if(id2 >= 2 && id2 <= 10)					{	  					DynamicFactions[id][fRankAmount] = id2;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's RankAmount to %d.", id,id2);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactiontype", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactiontype [factionid] [type (Numeric)]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactiontype [factionid] [type (Numeric)]");						return 1;					}					new id2;					id2 = strval(tmp);					DynamicFactions[id][fType] = id2;					new form[128];					format(form, sizeof form, "You've set Faction ID: %d's Type to %d.", id,id2);					SendClientMessage(playerid, COLOR_ADMINCMD,form);					SaveDynamicFactions();			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionjoinrank", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionjoinrank [factionid] [2-10]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionjoinrank [factionid] [2-10]");						return 1;					}					new id2;					id2 = strval(tmp);					if(id2 >= 2 && id2 <= 10)					{	  					DynamicFactions[id][fJoinRank] = id2;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's JoinRank to %d.", id,id2);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactiondrugs", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactiondrugs [factionid] [amount]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactiondrugs [factionid] [amount]");						return 1;					}					new id2;					id2 = strval(tmp);					DynamicFactions[id][fDrugs] = id2;					new form[128];					format(form, sizeof form, "You've set Faction ID: %d's Drugs to %d.", id,id2);					SendClientMessage(playerid, COLOR_ADMINCMD,form);					SaveDynamicFactions();			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionbank", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionbank [factionid] [amount]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionbank [factionid] [amount]");						return 1;					}					new id2;					id2 = strval(tmp);					DynamicFactions[id][fBank] = id2;					new form[128];					format(form, sizeof form, "You've set Faction ID: %d's Bank to %d.", id,id2);					SendClientMessage(playerid, COLOR_ADMINCMD,form);					SaveDynamicFactions();			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionmats", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionmats [factionid] [amount]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionmats [factionid] [amount]");						return 1;					}					new id2;					id2 = strval(tmp);					DynamicFactions[id][fMaterials] = id2;					new form[128];					format(form, sizeof form, "You've set Faction ID: %d's Materials to %d.", id,id2);					SendClientMessage(playerid, COLOR_ADMINCMD,form);					SaveDynamicFactions();			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionskin", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionskin [factionid] [Rank ID - 1-10] [Skinid]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionskin [factionid] [Rank ID - 1-10] [Skinid]");						return 1;					}					new id2;					id2 = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionskin [factionid] [Rank ID - 1-10] [Skinid]");						return 1;					}					new id3;					id3 = strval(tmp);										if(id2 == 1)					{	  					DynamicFactions[id][fSkin1] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 2)					{	  					DynamicFactions[id][fSkin2] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 3)					{	  					DynamicFactions[id][fSkin3] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 4)					{	  					DynamicFactions[id][fSkin4] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 5)					{	  					DynamicFactions[id][fSkin5] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 6)					{	  					DynamicFactions[id][fSkin6] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 7)					{	  					DynamicFactions[id][fSkin7] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 8)					{	  					DynamicFactions[id][fSkin8] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 9)					{	  					DynamicFactions[id][fSkin9] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}					else if(id2 == 10)					{	  					DynamicFactions[id][fSkin10] = id3;						new form[128];						format(form, sizeof form, "You've set Faction ID: %d's Rank %d Skin to %d.", id,id2,id3);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SaveDynamicFactions();					}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionrankname", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionrankname [factionid] [Rank ID - 1-10] [Name]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					tmp = strtok(cmdtext, idx);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionrankname [factionid] [Rank ID - 1-10] [Name]");						return 1;					}					new id2;					id2 = strval(tmp);					new length = strlen(cmdtext);					while ((idx < length) && (cmdtext[idx] <= ' '))					{						idx++;					}					new offset = idx;					new result[64];					while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))					{						result[idx - offset] = cmdtext[idx];						idx++;					}					result[idx - offset] = EOS;					if(!strlen(result))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionrankname [factionid] [Rank ID - 1-10] [Name]");						return 1;					}  					if(strfind( result , "|" , true ) == -1)    				{						if(id2 == 1)						{				   			strmid(DynamicFactions[id][fRank1], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 2)						{				   			strmid(DynamicFactions[id][fRank2], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 3)						{				   			strmid(DynamicFactions[id][fRank3], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 4)						{				   			strmid(DynamicFactions[id][fRank4], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 5)						{				   			strmid(DynamicFactions[id][fRank5], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 6)						{				   			strmid(DynamicFactions[id][fRank6], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 7)						{				   			strmid(DynamicFactions[id][fRank7], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 8)						{				   			strmid(DynamicFactions[id][fRank8], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 9)						{				   			strmid(DynamicFactions[id][fRank9], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}						else if(id2 == 10)						{				   			strmid(DynamicFactions[id][fRank10], (result), 0, strlen((result)), 128);							format(string, sizeof(string), "[Info] You have set faction ID: %d's Rank: %d's name to: %s", id,id2,result);							SendClientMessage(playerid, COLOR_ADMINCMD, string);							SaveDynamicFactions();						}					}					else					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Invalid symbol, | is not allowed!");					}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator!");			}		}		return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////  	if(strcmp(cmd, "/agotofaction", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /agotofaction [id]");				return 1;			}			new id = strval(tmp);			if (PlayerInfo[playerid][pAdmin] >= 3)			{				SetPlayerPos(playerid,DynamicFactions[id][fX],DynamicFactions[id][fY],DynamicFactions[id][fZ]);				SetPlayerInterior(playerid,0);				SetPlayerVirtualWorld(playerid,0);				new form[128];				format(form, sizeof(form), "[Info] You teleported to faction ID: %d.", id);				SendClientMessage(playerid, COLOR_ADMINCMD, form);			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}////////////////////////////////////////////////////////////////////////////////////////////// 	if(strcmp(cmd, "/afactionusecolor", true) == 0)	{	    if(IsPlayerConnected(playerid))	    {			tmp = strtok(cmdtext, idx);			if(!strlen(tmp))			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionusecolor [factionid]");				return 1;			}			if (PlayerInfo[playerid][pAdmin] >= 3)			{					new id;					id = strval(tmp);					if(!strlen(tmp))					{						SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /afactionusecolor [factionid]");						return 1;					}					if(DynamicFactions[id][fUseColor])					{	  					DynamicFactions[id][fUseColor] = 0;						new form[128];						format(form, sizeof form, "[Info] Faction ID: %d's color disabled.", id);						SendClientMessage(playerid, COLOR_ADMINCMD,form);				    	SendFactionMessage(id, COLOR_FACTIONCHAT, "[Faction] Faction color's disabled by an administrator.");						SaveDynamicFactions();												for(new i=0;i<MAX_PLAYERS;i++)						{					    	if(IsPlayerConnected(i))					       	{								if(PlayerInfo[i][pFaction] == id)								{									SetPlayerColor(i,COLOR_CIVILIAN);								}					       	}				       	}					}					else					{	  					DynamicFactions[id][fUseColor] = 1;						new form[128];						format(form, sizeof form, "[Info] Faction ID: %d's color enabled.", id);						SendClientMessage(playerid, COLOR_ADMINCMD,form);						SendFactionMessage(id, COLOR_FACTIONCHAT, "[Faction] Faction color's enabled by an administrator.");						SaveDynamicFactions();						  						for(new i=0;i<MAX_PLAYERS;i++)						{					    	if(IsPlayerConnected(i))					       	{								if(PlayerInfo[i][pFaction] == id)								{         							SetPlayerToFactionColor(i);								}					       	}				       	}					}			}			else			{				SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");			}		}		return 1;	}////////////////////////////////////////////////////////////////////////////////////////////// 	if(strcmp(cmd, "/afactiondrugsstorage", true) == 0)	{	if (PlayerInfo[playerid][pAdmin] >= 3)	{		new Float:x,Float:y,Float:z;		GetPlayerPos(playerid, x, y, z);  		new Float:angle;		GetPlayerFacingAngle(playerid, angle);		FactionDrugsStorage[X] = x;		FactionDrugsStorage[Y] = y;		FactionDrugsStorage[Z] = z;		FactionDrugsStorage[World] = GetPlayerVirtualWorld(playerid);		FactionDrugsStorage[Interior] = GetPlayerInterior(playerid);		FactionDrugsStorage[Angle] = angle;  		MoveStreamPickup(FactionDrugsStorage[PickupID],FactionDrugsStorage[X],FactionDrugsStorage[Y],FactionDrugsStorage[Z]);		SaveFactionDrugsStorage();		SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Faction Drugs Storage.");	}	else	{		SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");	}	return 1;	}//////////////////////////////////////////////////////////////////////////////////////////////	if(strcmp(cmd, "/afactionmatsstorage", true) == 0)	{	if (PlayerInfo[playerid][pAdmin] >= 3)	{		new Float:x,Float:y,Float:z;		GetPlayerPos(playerid, x, y, z);  		new Float:angle;		GetPlayerFacingAngle(playerid, angle);		FactionMaterialsStorage[X] = x;		FactionMaterialsStorage[Y] = y;		FactionMaterialsStorage[Z] = z;		FactionMaterialsStorage[World] = GetPlayerVirtualWorld(playerid);		FactionMaterialsStorage[Interior] = GetPlayerInterior(playerid);		FactionMaterialsStorage[Angle] = angle;  		MoveStreamPickup(FactionMaterialsStorage[PickupID],FactionMaterialsStorage[X],FactionMaterialsStorage[Y],FactionMaterialsStorage[Z]);		SaveFactionMaterialsStorage();		SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Faction Materials Storage.");	}	else	{		SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator.");	}	return 1;	}