SA-MP Forums Archive
[Ajuda]Comando /elegy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda]Comando /elegy (/showthread.php?tid=159831)



[Ajuda]Comando /elegy - Adriano499 - 14.07.2010

Quero que o elegy suma depois que o player faзa-o
aki esta o comando do prуprio :

if(strcmp( cmdtext , "/elegy", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new FloatX,FloatY,FloatZ;
GetPlayerPos(playerid,pX,pY,pZ);
AddStaticVehicleEx(562,pX,pY,pZ,0,-1,-1,-1);
}
return 1;
}

GRATO.


Re: [Ajuda]Comando /elegy - felipex - 14.07.2010

f(strcmp( cmdtext , "/elegy", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new VehicleID, Float:X, Float:Y, Float:Z, lol;
VehicleID = GetPlayerVehicleID(playerid);
GetPlayerPos(playerid, Float:X,Float:Y,Float:Z
lol = CreateVehicle(562, Float:X, Float:Y, Float:Z);
PutPlayerInVehicle(playerid, lol);
}
return 1;
}


Re: [Ajuda]Comando /elegy - felipex - 14.07.2010

// Lol, ja tinha um aq
if (strcmp("/carro", cmdtext, true, 10) == 0)
{
new Float: x, Float: y, Float: z, carro;
GetPlayerPos(playerid, Float: x, Float: y, Float: z);
carro = CreateVehicle(562, Float: x, Float:y, Float:z, 86, 86, 5);
PutPlayerInVehicle(playerid, carro);
return 1;
}


Respuesta: [Ajuda]Comando /elegy - Adriano499 - 14.07.2010

Obrigado pela atenзгo felipex.
Obrigado tambem [Full]Garfield[XDB].


Re: [Ajuda]Comando /elegy - zSuYaNw - 14.07.2010

aQui tem 2 modos diferentes de criar carros

https://sampforum.blast.hk/showthread.php?tid=144744