Jump to content

Question

2 answers to this question

Recommended Posts

  • 0
Posted

Acest lucru se face prin filterscript-ul HOLD ! 
Si modifici de acolo, iar dupa ce ai dat sa se salveze intr un fisier si iei de acolo coordonatele din acel fisier si creezi ceva de genul :
CMD:hallowenhat(playerid, params[])

{

     SetPlayerAttachedObject(playerid, si aici vine toata faza !)

}

  • 0
Posted (edited)

Salut, cum a spus si @RaulDume mai sus, eu iti voi da direct cu coordonatele pe care se ataseaza obiectul.

poftim comanda

CMD:hallowen(playerid, params[]) {
SetPlayerAttachedObject(playerid, 0, 19528, 2, 0.133000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);  // ii atasam palaria de hallowen (0-ul ala reprezinta index-ul  (slot-ul) )
SendClientMessage(playerid, COLOR_YELLOW, "Felicitari! Ti-ai atasat palaria de 'Hallowen' cu succes."); // ii transmitem un mesaj ca si-a atasat palaria
return 1; }

| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------  |

Daca doresti sa faci /removehallowen poftim..


CMD:removehallowen(playerid, params[]) {
RemovePlayerAttachedObject(playerid, 0); // ii dam jos palaria
SendClientMessage(playerid, COLOR_YELLOW, "Felicitari! Ti-ai scos cu succes palaria de hallowen.");
return 1;} 

Sper ca te-am ajutat :D

Edited by Edyyy.
  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.