Jump to content

Question

Posted

Salut Sa-Mp.ro ma puteti ajuta sa creez comanda /v call.Cand vipul da /v call sa ii teleporteaza masina personala de pe slot 1.Multumesc

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

9 answers to this question

Recommended Posts

Posted

aici se cere ajutor...cu errors / warnings nu se cer comenzi gata facute...unde este ce ai incercat tu..?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

Te rog macar spunemi cum definesc teloprtarea masini pers ca restul comenzii o sa incerc eu sa o fac

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Posted

if(strcmp(pName(playerid), Car_Owner1, true) == 0)

GetPlayerPos(playerid, X,Y,Z);
SetVehiclePos(phoenix, x+2,y+2,z);
PutPlayerInVehicle(playerid, phoenix, 0);

la Car_Owner1 pui numele...care este de ex...

#define Car_Owner1  "[PhX]Exc1siOn[PhX]"

unde [phx]exci.... este numele proprietarului

iar unde este phoenix ... sa pui numele care lai pui la acea masina de ex...

phoenix = AddStaticVehicle(........);

sper ca ai inteles...daca nu functioneaza dane niste linii de la "slot 1" si de la comanda /v... daca o ai creeata

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

pai si ce mi-ai dat tu este doar pentru toti vipi sau doar 1 care il definesc?

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Posted

ala care il definesti dar pui if(vip nuj ce ai peacolo in loc de strcmp ala

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

eu am incercat sa fac pentru toti vipi dar nu imi tp masina.Am facut comanda dupa /getcar

[pawn] if(strcmp(cmd, "/v call", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

  tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "[Ft:Rp]: /getcar [carid]");

return 1;

}

new Float:plocx,Float:plocy,Float:plocz;

new plo;

plo = strval(tmp);

if (PlayerInfo[playerid][pDonateRank] >= 3)

{

GetPlayerPos(playerid, plocx, plocy, plocz);

SetVehiclePos(plo,plocx,plocy+4, plocz);

PutPlayerInVehicle(playerid,pPcarkey,0);

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti autorizat sa folosesti aceasta comanda!");

}

}

return 1;

}[/pawn]

(?_?_?_?(???????????(??_?_?_??K??E??N??T?????????_?_?_?_?()??

Posted

pune la comanda doar /vcall ... si vezi daca functioneaza

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.