GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Tyty... le 14 Juin 2008, 15:15:47

Titre: Commande pour faire apparaitre un vehicule ??
Posté par: Tyty... le 14 Juin 2008, 15:15:47
                                                                                                               :cheers 
Bonjour à tous,

Je suis débutant(tres débutant xD) et je cherche une commande pour faire apparaitre un vehicule devant soi (mais que quand on est loger admin)

Voila j'ai tout dit, merci de m'aider


++ Tyty

                                                                                                                :cheers 
Titre: Re : Commande pour faire apparaitre un vehicule ??
Posté par: NatiVe™ le 14 Juin 2008, 15:43:00
Cherche dans Pawn Center il y a aumoin 5 topic sur ton sujet  :rules

NV.

Titre: Re : Commande pour faire apparaitre un vehicule ??
Posté par: pinouf42 le 14 Juin 2008, 16:42:04
Voila pour toi:

if (strcmp("/voi", cmdtext, true, 10) == 0)
{
new carid;
{
if (IsPlayerAdmin(playerid))
{
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = CreateVehicle(L'ID DE LA VOITURE QUE TU VEUX METTRE,X,Y,Z,Angle,-1,-1,50000);
PutPlayerInVehicle(playerid,carid,0);
}
else
{
SendClientMessage(playerid, COLOR_RED, "ICI tu MET LA PHRASE QUI INDIQUE QUE LA COMMANDE N'EXISTE PAS POUR FAIRE CROIRE A CELUI QUI ESSAYE DE LA FAIRE QU'IL C'EST TROMPE");
}
}
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Tu es déjà dans un vehicule !");
}
return 1;
}