Jump to content

Cum sa faci o comanda YCMD


xt3z0ne

Recommended Posts

In acest tutorial va voi prezentat cum sa faceti o comanda simpla pe YCMD

Vom avea nevoie de cordonate.

Intram in joc ne ducem la locatia in care vreti sal teleporteze pe jucator si dati /save

Dupa mergem start > My Documents > GTA San Andreas User Files > SAMP > savedpositions.txt

Bun iar acolo vom avea cordonatele

AddPlayerClass(230,-2074.0439,269.9826,37.7788,280.2640,0,0,0,0,0,0);

[pawn]

YCMD:wopss(playerid, params[], help)

{

[/pawn]

Dupa vom face Help

[pawn]If(help) return SendClientMessage(playerid, 0xFFFFFFFF, "Sa-Mp.Ro ");[/pawn]

Next IsPlayerInAnyVehicle

[pawn]if(!IsPlayerInAnyVehicle(playerid)){[/pawn]

Next Teles

[pawn]

                            SetPlayerPos(playerid, -2074.0439, 269.9826, 37.7788);

SetPlayerFacingAngle(playerid, 0.0);

SetPlayerInterior(playerid, 0);

SetPlayerVirtualWorld(playerid, 0);

}

[/pawn]

Bun acu vom face un else

[pawn]

else{

[/pawn]

In accest else vom face new veh

[pawn]

                            new veh = GetPlayerVehicleID(playerid);

SetVehiclePos(veh, -2074.0439, 269.9826, 37.7788);

SetVehicleZAngle(veh, 0.0);

LinkVehicleToInterior(veh, 0);

SetVehicleVirtualWorld(veh, 0);

PutPlayerInVehicle(playerid, veh, 0);

}

      return 1;

}

[/pawn]

Cam asa arata comanda

[pawn]

YCMD:wopss(playerid, params[], help)

{

If(help) return SendClientMessage(playerid, 0xFFFFFFFF, "Sa-Mp.Ro");

if(!IsPlayerInAnyVehicle(playerid)){

SetPlayerPos(playerid, -2074.0439, 269.9826, 37.7788);

SetPlayerFacingAngle(playerid, 0.0);

SetPlayerInterior(playerid, 0);

SetPlayerVirtualWorld(playerid, 0);

}

else{

new veh = GetPlayerVehicleID(playerid);

SetVehiclePos(veh, -2074.0439, 269.9826, 37.7788);

SetVehicleZAngle(veh, 0.0);

LinkVehicleToInterior(veh, 0);

SetVehicleVirtualWorld(veh, 0);

PutPlayerInVehicle(playerid, veh, 0);

}

return 1;

}

[/pawn]

Da nici eu nu stiu ce am facut aici :)))

Sunt un retardat

Link to comment
Share on other sites

Am si spus ca nici eu nu stiu ce am facut :)))

Daca nici nu stii macar de respectai si tu gramatica(cordonate acu accest) nu arata deloc ca un tutorial nu ai explicat nimic. De exemplu eu nu stiu scripting, cu ce o sa ma ajute daca pun

return 1;
}

la sfarsti. Nu o sa afle de ce si iar va veni aici sa ceara ajutor. Dai un edit ca sa nu ii dau eu si fal cum trebuie.

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

  • 1 month later...

Daca nici nu stii macar de respectai si tu gramatica(cordonate acu accest) nu arata deloc ca un tutorial nu ai explicat nimic. De exemplu eu nu stiu scripting, cu ce o sa ma ajute daca pun

return 1;
}

la sfarsti. Nu o sa afle de ce si i-ar va veni aici sa ceara ajutor. Dai un edit ca sa nu ii dau eu si fal cum trebuie.

Te iei de gramatica lui? De a ta ce zici?

Tutorialu 1/5 -> Nu ai explicat nimic.

I'm back bitches.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.