How to make squad factions for samp?
#1

Hello i have made a call of duty gm and i cant get how to make factions without making a new team
i want like if you pick a team and you are in a faction you will spawn in the faction place

here is my saving system if you can help me it will be appricaited

pawn Код:
enum PlayerInfo
{
    Pass[129], //User's password
    Adminlevel, //User's admin level
    VIPlevel, //User's vip level
    Money, //User's money
    Scores, //User's scores
    Kills, //User's kills
    Deaths, //User's deaths
    Last,
    NoPM,
    Banned
}
new pInfo[MAX_PLAYERS][PlayerInfo];

i only need an exsample faction
Reply
#2

You want to make factions like teams ? & when player register choose any faction he wants right ?
Reply
#3

Nope i want a faction like i am creating one via command and its saves to an ini file and i can choose the leader
and he can invite and he gets faction tag near his name too
Reply
#4

Any help i just need a exsample for it so i can make it
Reply
#5

Guys please help me
Reply
#6

Guys i really need help please
i really help
Reply
#7

Right stop bumping your post, because people are more than likely going to ignore it... Second use ****** because i know for a fact there is tutorials that give you this kind of information. (Dont state that you've looked because you clearly haven't.)
Reply
#8

But the tutorials arnt showing what i am asking for i am asking factions that you can add without being in a team
Reply
#9

Do you know how to use dcmd?

Код HTML:
enum PlayerInfo
{
    Pass[129], //User's password
    Adminlevel, //User's admin level
    VIPlevel, //User's vip level
    Money, //User's money
    Scores, //User's scores
    Kills, //User's kills
    Deaths, //User's deaths
    Last,
    NoPM,
    Banned,
    Faction
}
new pInfo[MAX_PLAYERS][PlayerInfo];

dcmd(setfaction, 10, cmdtext)

dcmd_setfaction(playerid, params[])
{
    new id;
    new adminlevel;
    new name[MAX_PLAYER_NAME+1], string[64+MAX_PLAYER_NAME+1];
    new name2[MAX_PLAYER_NAME+1], string2[64+MAX_PLAYER_NAME+1];
    if(sscanf(params, "ud", id, factionid))
    {
		SendClientMessage(playerid, COLOR_RED, "USAGE: /setfaction [name/id] [faction id]");
	}
 	else if (id == INVALID_PLAYER_ID)
	{
		SendClientMessage(playerid, COLOR_RED, "Player not found");
	}
	else
	{
	PlayerInfo[playerid][Faction] = factionid;
	GetPlayerName(id, name, sizeof(name));
	format(string, sizeof(string), "You have added %s (ID %d) to faction id %d.", name, id, adminlevel);
	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	GetPlayerName(playerid, name2, sizeof(name2));
   	format(string2, sizeof(string2), "You have been added to faction id %d by %s (ID %d).", adminlevel, name2, playerid);
	SendClientMessage(playerid, COLOR_PINK, string2);
	}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)