[Ajuda]Comando /elegy
#1

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.
Reply
#2

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;
}
Reply
#3

// 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;
}
Reply
#4

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

aQui tem 2 modos diferentes de criar carros

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


Forum Jump:


Users browsing this thread: 1 Guest(s)