GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: takeshi le 23 Septembre 2008, 16:24:12

Titre: Spawn arme
Posté par: takeshi le 23 Septembre 2008, 16:24:12
Bonjour

Voila jaimerais savoir comment faire spawner mes yakuza avec un katana et deagle.*Voila le sspawn d'origine:
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Yakuza spawn
      {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid, 1095.4346,-646.7538,113.6484);
          PlayerInfo[playerid][pInt] = 0;
          return 1;
Titre: Re : Spawn arme
Posté par: Nikko™ le 23 Septembre 2008, 19:38:00
GivePlayerWeapon ;)

Go wiki samp tout est expliquéé ;)

++
nikko
Titre: Re : Spawn arme
Posté par: ghettoman94 le 23 Septembre 2008, 20:04:10
Oui car si tu trouve pas, c'est que tu n'a pas chercher.
Voila l'adresse : http://www.sareallife.org/sampwiki/wiki.sa-mp.com/wiki/Main_Page.html
Titre: Re : Spawn arme
Posté par: Nikko™ le 23 Septembre 2008, 20:12:47
et tu regarde scripting function > GivePlayerWeapon

++
nikko
Titre: Re : Spawn arme
Posté par: ghettoman94 le 23 Septembre 2008, 20:14:33
Exactement :D et pour les id d'armes c'est ici : http://www.sareallife.org/sampwiki/wiki.sa-mp.com/wiki/Weapons.html

++
Titre: Re : Spawn arme
Posté par: takeshi le 24 Septembre 2008, 12:19:00
<c'est tout en anglais faut bien faire en dessous donc
giveplayerweapon 8, 1
Pour qu'il est une katana c'est ça?
Titre: Re : Spawn arme
Posté par: Nikko™ le 24 Septembre 2008, 12:52:28
Oui, mais pour en etre sur, va dans tutoriaux et reference samp dans la catégorie pawn center et tout est marqué ;)

++
nikko