Jump to content

Tutorial CMD: /vreaubani


qaz.LEGENDARU

Recommended Posts

Salut , astazi m-am gandit sa facem comanda "vreau bani" , stiu , este ceva simplu dar pentru cei care acum nu au niciun chef sa faca ceva , este perfecta.

Bun , sa incepem !

Scriptul este urmatorul :

CMD:vreaubani(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFAA, "Du-te la munca mane , nimeni nu iti da nimic gratis in viata.");
     SetPlayerCheckpoint(playerid,-382.3966,-1426.2290,26.1733,1.0);
      return 1;

Acum sa explicam ce face fiecare.

1) SendClientMessage(playerid, 0xFFFFFFAA, "Du-te la munca mane , nimeni nu iti da nimic gratis in viata."); este textul care ii apare jucatorului cand tasteaza comanda respectiva.

 SetPlayerCheckpoint(playerid,-382.3966,-1426.2290,26.1733,1.0); aceasta face ca atunci cand playerul tasteaza comanda /vreaubani sa i se seteze un checkpoint pe harta la jobul trucker pentru a incepe munca.

Cum ziceam , nu este nimic complicat , l-am facut pe fuga cam in 5 minute. Apropo aceasta comanda este facuta pe un GameMode BigZone.

Succes si spor la joc !

Edited by qaz.LEGENDARU
  • Like 1
  • Sad 2
Link to comment
Share on other sites

La 04.11.2017 la 16:54, qaz.LEGENDARU a spus:

Salut , astazi m-am gandit sa facem comanda "vreau bani" , stiu , este ceva simplu dar pentru cei care acum nu au niciun chef sa faca ceva , este perfecta.

Bun , sa incepem !

Scriptul este urmatorul :

CMD:vreaubani(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFAA, "Du-te la munca mane , nimeni nu iti da nimic gratis in viata.");
     SetPlayerCheckpoint(playerid,-382.3966,-1426.2290,26.1733,1.0);
      return 1;

Acum sa explicam ce face fiecare.

1) SendClientMessage(playerid, 0xFFFFFFAA, "Du-te la munca mane , nimeni nu iti da nimic gratis in viata."); este textul care ii apare jucatorului cand tasteaza comanda respectiva.

 SetPlayerCheckpoint(playerid,-382.3966,-1426.2290,26.1733,1.0); aceasta face ca atunci cand playerul tasteaza comanda /vreaubani sa i se seteze un checkpoint pe harta la jobul trucker pentru a incepe munca.

Cum ziceam , nu este nimic complicat , l-am facut pe fuga cam in 5 minute. Apropo aceasta comanda este facuta pe un GameMode BigZone.

Succes si spor la joc !

Tutoriale ca asta sa tot faceti ca sunt " de mare folos" pt cei care vor sa invete sa scripteze

Link to comment
Share on other sites

  • 1 month later...

CMD:givemoneyforme(playerid, params[])

{
 GivePlayerCash(playerid, 10000000);

SCM(playerid, -1, "Ai primit $1.000.000.000, salpa!");

SetTimer("cersit", 1000, 0);

 return 1;

}

 

forward cersit(playerid);

public cersit(playerid)

{

SCM(playerid, -1, "du-te ma la munca si nu mai primi");

GivePlayerCash(playerid, -10000000);

return 1;

}

 

Comanda mai buna ;)

Link to comment
Share on other sites

On 26.12.2017 at 9:34 AM, RazvaN. said:

CMD:givemoneyforme(playerid, params[])

{
 GivePlayerCash(playerid, 10000000);

SCM(playerid, -1, "Ai primit $1.000.000.000, salpa!");

SetTimer("cersit", 1000, 0);

 return 1;

}

 

forward cersit(playerid);

public cersit(playerid)

{

SCM(playerid, -1, "du-te ma la munca si nu mai primi");

GivePlayerCash(playerid, -10000000);

return 1;

}

 

Comanda mai buna ;)

:))

 

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.