Jump to content
  • 0

Probleme System Drugs!


DanielBz

Question

Salut!

Am si eu un server STUNT si am un modul Drugs!

Problema este ca atunci cand scriu comanda /buydrugs imi apare markerul rosu pe harta,dar cand intru in el sa imi dea drogurile nu imi da nici un drog!

Ce sa fac sa pot prmi drogurile de la markerul rosu?

Ce sa adaug in comanda /buydrugs sa mearga?

Uitati comanda:

[pawn]if(strcmp(cmdtext, "/buydrugs", true) == 0)

{

if (GetPlayerMoney(playerid) >= 10000)

{

            SetPlayerCheckpoint(playerid,2367.7803,-1674.2898,13.9063, 3.0);

SendClientMessage(playerid,COLOR_ULTRARED, "Te rugam sa cauti markerul rosu si sa  intrii in el pentru a primi drogurile!");

GivePlayerMoney( playerid, -10000 );

CreateDynamicCP( 2367.7803,-1674.2898,13.9063,1.0,-1,-1,-1, 40.0 );

    return 1;

    }

else

{

SendClientMessage(playerid, COLOR_ULTRARED, "Nu ai destui bani ca sa iti cumperi droguri! Ai nevoie de 10000$!");

return 1;

}

}

if(strcmp(cmdtext, "/drugshelp", true) == 0)

{

new dh[500];

strcat(dh,"\t{FF9900}Drugs Commands\n\n\n{FF9900}Commands {E60000}v1.0:\n  {00FF00}-->/buydrugs\n  {00FF00}-->/selldrugs\n  {00FF00}-->/drugshelp\n  {00FF00}-->/setdrugs\n\n{FF9900}Commands {E60000}v2.0:\n  {00FF00}-->/usedrugs");

ShowPlayerDialog(playerid, 5000, 0,"{FFFF00}Drugs System by xxSPEEDYxx v2.0",dh, "OK", "");

return 1;

}[/pawn]

Sper ca ma puteti ajuta! :smiley:

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.