15.09.2013, 22:04
Can someone make a tutorial on how to create a [TAG] system? for example, script a private vehicle for a faction. or a /makeleader command for rcon admins. And /makeofficial command for the faction leader.
if(IsPlayerAdmin(playerid)) //This will check if you are logged with Rcon Password or no
CMD:makeleader(playerid, params[]) //Example of Makeleader Command
{
if (PlayerInfo[playerid][pAdmin] >= 1337) //That's just an example
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
if(IsPlayerAdmin(playerid))
CMD:makeleader(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
if (PlayerInfo[playerid][pLeader] >= 1) //1 is just an example for the Faction Number you can always change it.
CMD:makeoffical(playerid, params[]) //Normal Command just an example
{
if (PlayerInfo[playerid][pLeader] >= 1) //The function which checks the player a leader or not , 1 is the faction id you can always change it.
{