[HELP] Questions...
#2

Код:
command(skin, playerid, params[])
{
     new skinid;
     if(sscanf(params, "dd", skinid))
     {
          if(IsPlayerConnected(playerid))
          {
               SendClientMessage(playerid, WHITE, "SYNTAX: /skin [id]");
          }
     }
     else
     {
          if(IsPlayerConnected(playerid))
          {
               if(IsPlayerInRangeOfPoint(playerid, x, y, z, range);
               {
                    SetPlayerSkin(playerid, skinid);
                    new string[128];
                    format(string, sizeof(string), "You have bought skin ID %s from the store!", skinid);
                    SendClientMessage(playerid, WHITE, string);
                    GivePlayerMoney(playerid, -60);
               }
               else
               {
                     SendClientMessage(playerid, WHITE, "You are not in the clothes shop!");
               }
          }
     }
     return 1;
}
that what you're looking for? If not then please reply.
Reply


Messages In This Thread
[HELP] Questions... - by electry_12 - 03.12.2008, 23:07
Re : [HELP] Questions... - by rbcrp - 07.01.2012, 02:30
Re: [HELP] Questions... - by Richie - 07.01.2012, 02:35
Re: [HELP] Questions... - by [O.z]Caroline - 07.01.2012, 04:23
Re : [HELP] Questions... - by rbcrp - 08.01.2012, 03:04

Forum Jump:


Users browsing this thread: 1 Guest(s)