Jump to content
  • 0

GivePlayerWeapon problem


[XSS]Skull

Question

Salut deci am adaugat o comanda in care am asa:

 if (strcmp(cmdtext, "/1hp", true) == 0) {
    SetPlayerHealth(playerid, 1);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 348, 900);
    SetPlayerPos(playerid,1890.6571,1422.6610,74.3900);
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), " {FF0000}%s {FFFF00} s-a teleportat la 1HP {FF0000}(/1hp)", pname);
    SendClientMessageToAll(0xFFFF00FF, string);
    return 1;
    }

Numai ca in joc cand dau /1hp imi ia din viata dar nu imi aparea deagle [postolul id: 348] stiti de ce face asa?

PFFFFFF: edit: mi-am invatat lectia .. trebuie mai intai sa caut ... era gresit id-ul .. sa dea cnv <REMOVE>

skulls11.png
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.