GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Showroom SA:MP => Discussion démarrée par: cristab le 02 Octobre 2009, 11:07:43

Titre: [INC]Get Family Skin
Posté par: cristab le 02 Octobre 2009, 11:07:43
(http://lzrteam.fr/cristab/FamilyFontv1.png)


Bonjour je vous presente une petite include qui regroupe quelque Skin par famille je me suis basé du Wiki SA-MP pour les classer

Les fonctions

native IsPlayerGroove(playerid);
native IsPlayerBallas(playerid);
native IsPlayerAztec(playerid);
native IsPlayerVagos(playerid);
native IsPlayerDaNang(playerid);
native IsPlayerRifa(playerid);
native IsPlayerTriad(playerid);
native IsPlayerBiker(playerid);
native IsPlayerMafia(playerid);
native IsPlayerFBI(playerid);
native IsPlayerMedic(playerid);
native IsPlayerFire(playerid);
native IsPlayerPolice(playerid);
native IsPlayerSwat(playerid);
native IsPlayerForceSpec(playerid);
native IsPlayerArmy(playerid);
native IsPlayerGirlfriends(playerid);
native IsPlayerBeach(playerid);
native IsPlayerFarm(playerid);

Comment dois-je l'utiliser

c'est assez simple en haute de votre GM mettez #include <GetFamilySkin> en dessous de #include <a_samp>

et voici un exemple de commande

<?php
if(strcmp(cmdtext"/openlvpd1"true)==0)
{
 if(
IsPlayerCop(playerid))
 {
   
MoveObject(PDGate,2237.7682466.19012.5936.5);
   
SendClientMessage(playerid0x33AA33AA,"Vous ouvrez la premiere porte");
   return 
1;
 }
 else
 {
   
SendClientMessage(playerid,0xAA3333AA,"Seul la police a acces a cette commande");
 }
 return 
1;
}

V 1.0
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

(http://solidfiles.com/info_imgs/Lcwp.jpg) (http://solidfiles.com/d/Lcwp)
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

(http://www.gtaonline.fr/forums/Themes/proton/images/post/lamp.gif)PASTEBIN (http://pastebin.gtaonline.fr/pastebin.php?show=673)
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-

(http://uppix.net/7/1/6/5178d2042896210e6b476f4f0cae9.png) (http://gtaonline.fr)
Titre: Re : [INC]Get Family Skin
Posté par: FuSion le 02 Octobre 2009, 13:37:44
Très utile pour les RPG en construction, je vais voir sa plus tard !

Bon boulot !

++
FS'