Command help.
#10

pawn Код:
if(strcmp(cmd, "/changeplate", true) == 0)
#pragma tabsize 0
    {
      if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pRank] >= 5)
      {
        cmd = strtok(cmdtext, idx);
        if(!strlen(cmd))
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /changeplate [platenumber (up to 8 chars, use '-' for space char)]");
            return 1;
        }
                if(IsPlayerInAnyVehicle(playerid) == 1)
                {
                    //new amount;
                    //amount = strlen(cmd);
                  SetVehicleNumberPlate(GetPlayerVehicleID(playerid), cmd);
                    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                    new id = GetVecInfoID( vehicleid );
                    VehicleInfo[ id ][ vPlate ] = cmd[0];
                    return 1;
                }
                else
                {
                    SendClientMessage(playerid, 0xFF9900AA, "SERVER: Nu esti in nicio masina.");
                }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD2, "SERVER: Nu ai autorizatie pentru a folosi aceasta comanda [PD rank5+].");
        }
      return 1;
  }
Reply


Messages In This Thread
Command help. - by GaB1TzZzu - 13.02.2011, 11:54
Re: Command help. - by Luis- - 13.02.2011, 11:56
Re: Command help. - by GaB1TzZzu - 13.02.2011, 11:59
Re: Command help. - by Luis- - 13.02.2011, 12:00
Re: Command help. - by GaB1TzZzu - 13.02.2011, 12:03
Re: Command help. - by GaB1TzZzu - 13.02.2011, 12:04
Re: Command help. - by Luis- - 13.02.2011, 12:06
Re: Command help. - by GaB1TzZzu - 13.02.2011, 12:09
Re: Command help. - by SkizzoTrick - 13.02.2011, 12:10
Re: Command help. - by Luis- - 13.02.2011, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)