GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Showroom SA:MP => Discussion démarrée par: cristab le 04 Octobre 2009, 23:22:49

Titre: [INC]SpawnChoice
Posté par: cristab le 04 Octobre 2009, 23:22:49
SpawnChoice.inc


Bonsoir voila je vous present une include qui va permettre pour les serveur 0.2X de choisir votre ville et lieu de la ville pour spawn c'est une include tout bete qui utilise le systeme de menu

lien pastebin (http://lzr.pastebin.com/f5122cebd)

(http://solidfiles.com/info_imgs/vgPC.jpg) (http://solidfiles.com/d/vgPC)

et voila un petit GM auquel j'ai ajouter l'include

<?php
#include <a_samp>
#include <SpawnChoice>

main()
{
print("\n----------------------------------");
print(" test include SpawnChoice");
print("----------------------------------\n");
}

public 
OnGameModeInit()
{
SpawnInit();
SetGameModeText("Blank Script");
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
return 1;
}
public 
OnGameModeExit()
{
return 1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
SetPlayerPos(playerid1958.37831343.157215.3746);
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
return 1;
}

public 
OnPlayerConnect(playerid)
{
  
SpawnConnect(playerid);
return 1;
}
public 
OnPlayerSpawn(playerid)
{
  
SpawnPlayerSpawn(playerid);
return 1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
if (strcmp("/changespawn"cmdtexttrue) == 0)
{
SpawnChange(playerid);
return 1;
}
return 0;
}
public 
OnPlayerSelectedMenuRow(playeridrow)
{
  
SpawnMenu(playerid,row);
return 1;
}
public 
OnPlayerExitedMenu(playerid)
{
  
SpawnExitMenu(playerid);
return 1;
}

(http://uppix.net/7/1/6/5178d2042896210e6b476f4f0cae9.png) (http://gtaonline.fr)
Titre: Re : [INC]SpawnChoice
Posté par: Mr_C30 le 06 Octobre 2009, 14:36:46
re gg  ;)
Titre: Re : [INC]SpawnChoice
Posté par: Ssk le 06 Octobre 2009, 17:46:39
GG Cristab
Titre: Re : [INC]SpawnChoice
Posté par: cristab le 06 Octobre 2009, 17:59:34
thx   :)
Titre: Re : [INC]SpawnChoice
Posté par: S!m le 06 Octobre 2009, 23:58:06
Salut,

bel include :P

c'est rare qu'on voit un système de ce genre :P surtout dans un include, ça fais différent et c'est bien beau^^

++Sim++