Jump to content
  • 0

set skin


ruben88

Question

12 answers to this question

Recommended Posts

Ati facut atata spam dar nu i-ati putut da comanda ... omg

if (strcmp(cmd, "/skin", true) == 0 )

{

new skin[256];

skin = strtok(cmdtext, idx);

if (!strlen(skin))

{

SendClientMessage(playerid, COLOR_RED, "Use: /skin [skinid]");

return 1;

}

new newskin = strval(skin);

if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {

SendClientMessage(playerid, COLOR_RED, "Server: This skin does not exist!");

return 1;

}

if (GetPlayerMoney(playerid) >= 0)

{

SetPlayerSkin(playerid, newskin);

GivePlayerMoney(playerid,-0);

format(string, 128, "Server: Skin changed to the id %d, have fun", newskin);

SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

}

else

{

SendClientMessage(playerid, COLOR_RED, "You can not change skin");

}

return 1;

}

Alta data cauta ca in viata nu prea o sa te ajute multi !

PS: IL pot folosi si playerii nu mai face atatea posturi esti disperaT?

16189165.gifrastamaunbydeejaylobo1.gifsmileysw0181.gif

xmsok6ay41.gif

Link to comment
Share on other sites

sigur o sa primesti warn o sa ma asigur eu :)

if (strcmp(cmd, "/skin", true) == 0 )

  {

      new skin[256];

      skin = strtok(cmdtext, idx);

      if (!strlen(skin))

      {

        SendClientMessage(playerid, COLOR_RED, "Use: /skin [skinid]");

        return 1;

      }

      new newskin = strval(skin);

      if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {

        SendClientMessage(playerid, COLOR_RED, "Server: This skin does not exist!");

        return 1;

      }

      if (GetPlayerMoney(playerid) >= 0)

      {

        SetPlayerSkin(playerid, newskin);

        GivePlayerMoney(playerid,-0);

        format(string, 128, "Server: Skin changed to the id %d, have fun", newskin);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

      }

      else

      {

        SendClientMessage(playerid, COLOR_RED, "You can not change skin");

      }

      return 1;

  }

U nu sti sa citesti mai sus lol esti praf frate dupa ce ca nu stii nimic scripting nici macar sa cauti mai esti si stupid pe deasupra ...

                                                                                      LOOSER

16189165.gifrastamaunbydeejaylobo1.gifsmileysw0181.gif

xmsok6ay41.gif

Link to comment
Share on other sites

Poftim Desteptule nici asta nu e buna  http://img811.imageshack.us/img811/1592/82010665.png

Si sa sti ca si eu am cautat destul si tot erurori ami dadea

Dupa ce ca ti-a dat pe masa mai si comentezi!

http://wiki.sa-mp.com/

[ Locked! ]

Link to comment
Share on other sites

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.