GTAOnline.net
San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Criminalos le 17 Août 2009, 21:44:57
-
bonjour jai un probleme avec les leader voila jai mon server et je veut etre leader de la mafia mais je doit faire
PS: jai un system de leader
je doit aller dans le filscritp?
-
on sais pas
avec autant d'info on va tous alez loin
-
ba jai telecharger un GM mais je veut etre le leader de la mafia comment je doit faire ?
voila le system
Leader System (Dynamic):
- Admin can appoint a player that will then Lead a Faction (of above).
- Leader can invite Civilians (With faulty check system in it).
- Leader can kick players out.
- Leader can assign Ranks to his Members.
- As soon a Leader invites a Civilian, it will check what that Civilian will become and teleports him somewhere, where the Civilian can choose a skin that comes with that Faction.
Family System (Dynamic):
- This is done by the 2 Organisation Leader (La Cosa Nostra & Yakuza).
- Both the Organisations can recruit 5 families.
- Both the Organisations can delete their own Families.
- Players can check which families are created, and who's the Leader of it.
- Players can check which players are in a family.
- Leaders of a Family can adjust anything they like (Name / MOTD / Color / Spawn).
- Leaders can Invite / Uninvite players or give them a Rank.
-
Ouais mais nous on veut le code ;)
-
le code? coment sa
-
un exemple de la save le bout de code des factions enfin la bible quoi ^^
bible= mon therme employer qui veut dire "le plus de detail possible mettre le code sur pastebin et mettre le lien ici que doit comporter l'exemple les commande de faction coter administration"
-
public OnPlayerRequestClass(playerid, classid)
{
new string[128];
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
if (classid == 1)
{
format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 2)
{
format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 3)
{
format(string, sizeof(string), "~y~> ~p~National Guard General ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 4)
{
format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 5)
{
format(string, sizeof(string), "~y~> ~p~La Cosa Nostra Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 6)
{
format(string, sizeof(string), "~y~> ~p~Yakuza Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 7)
{
format(string, sizeof(string), "~y~> ~p~Mayor ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 8)
{
format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 9)
{
format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 10)
{
format(string, sizeof(string), "~y~> ~p~Taxi Cab Company Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 11)
{
format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~y~> ~g~Civilian ~y~<");
GameTextForPlayer(playerid,string,3500,6);
}
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;
}
-
un exemple de la save le bout de code des factions enfin la bible quoi ^^
bible= mon therme employer qui veut dire "le plus de detail possible mettre le code sur pastebin et mettre le lien ici que doit comporter l'exemple les commande de faction coter administration"
STP pastebin est la ton code nous donne rien
-
atten tien http://www.mediafire.com/?vjawzqpqsmn (http://www.mediafire.com/?vjawzqpqsmn)
voila sa sera mieu
-
Euh .... Pastebin tu connais ??
http://pastebin.gtaonline.fr (http://pastebin.gtaonline.fr)
Et quand on dit le code c' est le GM que tu as telecharger, ou bien les bout de code des commande =)
/invite /uninvite regarde si tu trouve ca
-
Je supose que c'es un LARP,
tu doit faire /makeleader <tonid> 6
sir tu es admin ...
-
Salut,
Regarde dans tes scriptfiles, tu sélectionne le compte ( sous ton pseudo IG ) et tu l'ouvre avec le blocnote, et ensuite t'auras une ligne du type:
Leader=
Et là, je pense que c'est à toi d'y mettre le numéro de la faction voulu.
Nb: Je dis ça, mais j'en suis pas certains, car j'ai jamais utilisé ce GM.
-
tien le pastebin http://pastebin.gtaonline.fr/pastebin.php?show=652 (http://pastebin.gtaonline.fr/pastebin.php?show=652)